File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,15 @@ jobs:
76
76
id : tag-image
77
77
run : |
78
78
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
80
83
if [ "${GITHUB_REF}" == "refs/heads/main" ] ; then
81
84
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
83
86
fi
84
- TAGS+=("latest-${{ matrix.bundle_mode }}")
87
+ TAGS+=("latest-${{ matrix.bundle_mode }}") # ex latest-k8s
85
88
fi
86
89
for tag in "${TAGS[@]}"; do
87
90
podman tag "${{ env.CI_BUNDLE_IMG }}:${IMG_TAG}" "${{ env.CI_BUNDLE_IMG }}:${tag}"
You can’t perform that action at this time.
0 commit comments