From ae627a129b8805719ae7a21a97408f4328825913 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Thu, 9 Jan 2025 00:14:41 +0000 Subject: [PATCH] fix issue with bash script for manifests --- .github/workflows/publish-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index c57014b0..af27b75b 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -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