From af9a6c0c9588b8bc9e34ac1624f8e9a80c3ecac9 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Thu, 9 Jan 2025 02:38:21 +0000 Subject: [PATCH] fix issue with bash script for manifests --- .github/workflows/publish-image.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index d37e1743..51300ac6 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -257,14 +257,10 @@ jobs: ANNOTATIONS_LIST=($DOCKER_METADATA_OUTPUT_ANNOTATIONS) TAGS_LIST=($DOCKER_METADATA_OUTPUT_TAGS) for REPO in "${IMAGES_LIST[@]}"; do - echo docker buildx imagetools create \ - $(printf -- " --tag %q" "${TAGS_LIST[@]}") \ - $(printf -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \ - $(printf "$REPO@sha256:%s " *) docker buildx imagetools create \ - $(printf -- " --tag %q" "${TAGS_LIST[@]}") \ - $(printf -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \ - $(printf "$REPO@sha256:%s " *) + $(for tag in "${TAGS_LIST[@]}"; do echo "--tag"; echo "$tag"; done) \ + $(for annotation in "${ANNOTATIONS_LIST[@]}"; do echo "--annotation"; echo "$annotation"; done) \ + $(for reference in *; do printf "$REPO@sha256:%s" $reference; done) done - name: Inspect image