From 09a16c7fbe6ef2bbe67a3a45054eee7b720ffcc0 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Wed, 8 Jan 2025 23:44:49 +0000 Subject: [PATCH] fix issue with bash script for manifests --- .github/workflows/publish-image.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 3d72fa72..c57014b0 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -254,9 +254,10 @@ jobs: run: | IMAGES_LIST=($IMAGES) for REPO in "${IMAGES_LIST[@]}"; do - docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ - $(printf -- "--annotation \"%s\" " "${DOCKER_METADATA_OUTPUT_ANNOTATIONS[@]}") \ - $(printf "$REPO@sha256:%s " *) + docker buildx imagetools create \ + $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ + $(printf -- " --annotation %q" "${DOCKER_METADATA_OUTPUT_ANNOTATIONS[@]}") \ + $(printf "$REPO@sha256:%s " *) done - name: Inspect image