From bc0735d4e6fd89e8f51e9f3318278295374c9e9e Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Mon, 16 Oct 2023 16:27:15 +0300 Subject: [PATCH] .github: more image tagging/publishing fixes. 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 --- .github/workflows/publish-images.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-images.yaml b/.github/workflows/publish-images.yaml index 31eb1f180..e31709778 100644 --- a/.github/workflows/publish-images.yaml +++ b/.github/workflows/publish-images.yaml @@ -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."