From 7178adba811d6ece079dcfc37b5d0e64c07e55a4 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Thu, 9 Jan 2025 01:21:05 +0000 Subject: [PATCH] remove unsupported manifest annotations --- .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 39f178ae..d37e1743 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -245,7 +245,7 @@ jobs: images: ${{needs.define-variables.outputs.images}} # default labels & annotations: https://github.com/docker/metadata-action/blob/master/src/meta.ts#L509 env: - DOCKER_METADATA_ANNOTATIONS_LEVELS: index,manifest + DOCKER_METADATA_ANNOTATIONS_LEVELS: index - name: Create manifest list and push working-directory: /tmp/digests @@ -255,13 +255,14 @@ jobs: IFS=$'\n' IMAGES_LIST=($IMAGES) ANNOTATIONS_LIST=($DOCKER_METADATA_OUTPUT_ANNOTATIONS) + TAGS_LIST=($DOCKER_METADATA_OUTPUT_TAGS) for REPO in "${IMAGES_LIST[@]}"; do echo docker buildx imagetools create \ - $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ + $(printf -- " --tag %q" "${TAGS_LIST[@]}") \ $(printf -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \ $(printf "$REPO@sha256:%s " *) docker buildx imagetools create \ - $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ + $(printf -- " --tag %q" "${TAGS_LIST[@]}") \ $(printf -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \ $(printf "$REPO@sha256:%s " *) done