Skip to content

Commit ff8da81

Browse files
ci(bundle): correct bundle tagging on release branches (#1083) (#1084)
(cherry picked from commit 3b6bb06) Co-authored-by: Andrew Azores <me@andrewazor.es>
1 parent 4c9b586 commit ff8da81

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build-ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,15 @@ jobs:
7676
id: tag-image
7777
run: |
7878
IMG_TAG="$(make --eval='print-img-ver: ; @echo $(IMAGE_VERSION)' print-img-ver)"
79-
TAGS+=("${IMG_TAG}-${{ matrix.bundle_mode }}")
79+
TAGS+=("${IMG_TAG}-${{ matrix.bundle_mode }}") # ex 4.0.0-dev-k8s
80+
if [ "${{ matrix.bundle_mode }}" == "k8s" ]; then
81+
TAGS+=("${IMG_TAG}") # ex 4.0.0-dev
82+
fi
8083
if [ "${GITHUB_REF}" == "refs/heads/main" ] ; then
8184
if [ "${{ matrix.bundle_mode }}" == "k8s" ]; then
82-
TAGS+=("${IMG_TAG}" "latest")
85+
TAGS+=("latest") # builds from main are called latest, and alias to the k8s bundle
8386
fi
84-
TAGS+=("latest-${{ matrix.bundle_mode }}")
87+
TAGS+=("latest-${{ matrix.bundle_mode }}") # ex latest-k8s
8588
fi
8689
for tag in "${TAGS[@]}"; do
8790
podman tag "${{ env.CI_BUNDLE_IMG }}:${IMG_TAG}" "${{ env.CI_BUNDLE_IMG }}:${tag}"

0 commit comments

Comments
 (0)