Skip to content

Commit

Permalink
clean up workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma-eth committed Jun 4, 2024
1 parent ba0fca5 commit fa55327
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/solvers-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ on:
branches:
- feat-packages

# This creates an environment variable called `IMAGE_NAME ` with the value `solvers`.
env:
IMAGE_NAME: solvers

#
jobs:
# This pushes the image to GitHub Packages.
push:
Expand All @@ -35,10 +33,13 @@ jobs:
# This changes all uppercase characters to lowercase.
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# This strips the git ref prefix from the version.
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# This strips the "v" prefix from the tag name.
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# This uses the Docker `latest` tag convention.
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
Expand Down

0 comments on commit fa55327

Please sign in to comment.