This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
forked from groovy/groovy-website
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
|
||
jobs: | ||
build: | ||
name: "Stable Release" | ||
name: "Release" | ||
runs-on: ubuntu-latest | ||
environment: production | ||
services: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters