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

Commit

Permalink
Simplify version extraction in GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Feb 3, 2024
1 parent 4892327 commit 5cc8a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: ./sbt docker:publishLocal
- name: Push image to DO registry
run: |
version=$(./sbt version | tail -n 1 | awk -F ' ' '{print $2}')
version=$(git rev-parse --short HEAD)
docker push registry.digitalocean.com/sdkman/sdkman-website:$version
docker push registry.digitalocean.com/sdkman/sdkman-website:latest

0 comments on commit 5cc8a36

Please sign in to comment.