fix issue with bash script for manifests

This commit is contained in:
Jade Ellis 2025-01-09 00:14:41 +00:00
parent 7fc2e6a420
commit ae627a129b
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -252,11 +252,13 @@ jobs:
env:
IMAGES: ${{needs.define-variables.outputs.images}}
run: |
IFS=$'\n'
IMAGES_LIST=($IMAGES)
ANNOTATIONS_LIST=($DOCKER_METADATA_OUTPUT_ANNOTATIONS)
for REPO in "${IMAGES_LIST[@]}"; do
docker buildx imagetools create \
$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf -- " --annotation %q" "${DOCKER_METADATA_OUTPUT_ANNOTATIONS[@]}") \
$(printf -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \
$(printf "$REPO@sha256:%s " *)
done