Skip to content

Commit

Permalink
Update publish-image.yml
Browse files Browse the repository at this point in the history
Offer "latest" for each branch
  • Loading branch information
Chefkeks authored Apr 23, 2024
1 parent 249f739 commit 0e7f254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
echo ::set-output name=channel::"latest"
echo ::set-output name=version::main_$(cat VERSION)-${GITHUB_SHA::6}
elif [[ "$GITHUB_REF" == "refs/heads/"* ]]; then
echo ::set-output name=channel::${GITHUB_REF/refs\/heads\//}-"latest"
echo ::set-output name=version::${GITHUB_REF/refs\/heads\//}-$(cat VERSION)-${GITHUB_SHA::6}
elif [[ "$GITHUB_REF" == "refs/tags/"* ]]; then
echo ::set-output name=channel::${GITHUB_REF/refs\/tags\//}
Expand Down

0 comments on commit 0e7f254

Please sign in to comment.