[infrastructure] Preserve snapshot image variant tags (#7511)

This commit is contained in:
Nicolas Frati
2026-09-11 14:20:58 +02:00
committed by GitHub
parent ad3f570e32
commit b57f0e5608
+7 -2
View File
@@ -287,10 +287,15 @@ jobs:
image_refs=()
tag_and_push() {
local src="$1" img_name tag dst
local src="$1" img_name tag dst variant=""
img_name="${src%%:*}"
# Client variants share a repository, so keep their tag suffixes.
case "$src" in
*-rootless-ubi-amd64) variant="-rootless-ubi" ;;
*-rootless-amd64) variant="-rootless" ;;
esac
for tag in $(resolve_tags); do
dst="${img_name}:${tag}"
dst="${img_name}:${tag}${variant}"
echo "Tagging ${src} -> ${dst}"
docker tag "$src" "$dst"
docker push "$dst"