fix issue with bash script for manifests

This commit is contained in:
Jade Ellis 2025-01-08 23:44:49 +00:00
parent 5c3a14202d
commit 09a16c7fbe
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -254,8 +254,9 @@ jobs:
run: | run: |
IMAGES_LIST=($IMAGES) IMAGES_LIST=($IMAGES)
for REPO in "${IMAGES_LIST[@]}"; do for REPO in "${IMAGES_LIST[@]}"; do
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ docker buildx imagetools create \
$(printf -- "--annotation \"%s\" " "${DOCKER_METADATA_OUTPUT_ANNOTATIONS[@]}") \ $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf -- " --annotation %q" "${DOCKER_METADATA_OUTPUT_ANNOTATIONS[@]}") \
$(printf "$REPO@sha256:%s " *) $(printf "$REPO@sha256:%s " *)
done done