Iterate over tags on release (#6518)

Co-authored-by: Timshel <timshel@480s>
This commit is contained in:
Timshel
2025-12-06 22:12:25 +01:00
committed by GitHub
parent 5981705375
commit f0e79fd391

View File

@@ -368,12 +368,14 @@ jobs:
run: | run: |
set +e set +e
IFS=',' read -ra IMAGES <<< "${CONTAINER_REGISTRIES}" IFS=',' read -ra IMAGES <<< "${CONTAINER_REGISTRIES}"
IFS=',' read -ra TAGS <<< "${BASE_TAGS}"
for img in "${IMAGES[@]}"; do for img in "${IMAGES[@]}"; do
echo "Creating manifest for $img:${BASE_TAGS}-${BASE_IMAGE}" for tag in "${TAGS[@]}"; do
echo "Creating manifest for $img:$tag-${BASE_IMAGE}"
OUTPUT=$(docker buildx imagetools create \ OUTPUT=$(docker buildx imagetools create \
-t "$img:${BASE_TAGS}-${BASE_IMAGE}" \ -t "$img:$tag-${BASE_IMAGE}" \
$(printf "$img:${BASE_TAGS}-${BASE_IMAGE}@sha256:%s " *) 2>&1) $(printf "$img:$tag-${BASE_IMAGE}@sha256:%s " *) 2>&1)
STATUS=$? STATUS=$?
if [ $STATUS -ne 0 ]; then if [ $STATUS -ne 0 ]; then
@@ -385,6 +387,7 @@ jobs:
echo "Manifest created for $img" echo "Manifest created for $img"
echo "$OUTPUT" echo "$OUTPUT"
done done
done
set -e set -e
# Extract digest SHA for subsequent steps # Extract digest SHA for subsequent steps