Skip to content

Commit

Permalink
.github: more image tagging/publishing fixes.
Browse files Browse the repository at this point in the history
Don't strip the v-prefix from version tags. Moreover, to try and
be more consistent, also inject a leading v-prefix to versions
derived from release branch names. IOW, call the image generated
from the tip of release-0.2 'v0.2-unstable', not '0.2-unstable'.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Oct 16, 2023
1 parent da49e31 commit bc0735d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
echo " - digging out tag from git ref $GITREF..."
case $GITREF in
refs/tags/v*)
tag="${GITREF#refs/tags/v}"
tag="${GITREF#refs/tags/}"
;;
refs/heads/main)
tag=unstable
;;
refs/heads/release-*)
tag="${GITREF#refs/heads/release-}-unstable"
tag="v${GITREF#refs/heads/release-}-unstable"
;;
*)
echo "error: can't determine tag."
Expand Down

0 comments on commit bc0735d

Please sign in to comment.