Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Release to DO container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Feb 3, 2024
1 parent 9736ad4 commit e6f79ce
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
name: "Stable Release"
name: "Release"
runs-on: ubuntu-latest
environment: production
services:
Expand All @@ -15,14 +15,21 @@ jobs:
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log in to Docker Hub
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- uses: oleksiyrudenko/[email protected]
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: '${{ secrets.GITHUB_TOKEN }}'
token: ${{ secrets.DIGITALOCEAN_TOKEN }}
- name: Log in to DigitalOcean Docker Registry
run: |
doctl registry login
- name: Release
run: ./sbt "release with-defaults"
# - name: Push image to DO registry
# run: |
# version=$(sbt version | tail -n 1 | awk -F ' ' '{print $2}')
# docker push registry.digitalocean.com/sdkman/sdkman-website:$version
# docker push registry.digitalocean.com/sdkman/sdkman-website:latest

2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name := """sdkman-website"""

organization := "io.sdkman"

Docker / packageName := "sdkman/sdkman-website"
Docker / packageName := "registry.digitalocean.com/sdkman/sdkman-website"

dockerBaseImage := "openjdk:11"

Expand Down

0 comments on commit e6f79ce

Please sign in to comment.