remove unsupported manifest annotations

This commit is contained in:
Jade Ellis 2025-01-09 01:21:05 +00:00
parent 0177d6c00e
commit 7178adba81
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -245,7 +245,7 @@ jobs:
images: ${{needs.define-variables.outputs.images}} images: ${{needs.define-variables.outputs.images}}
# default labels & annotations: https://github.com/docker/metadata-action/blob/master/src/meta.ts#L509 # default labels & annotations: https://github.com/docker/metadata-action/blob/master/src/meta.ts#L509
env: env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: index,manifest DOCKER_METADATA_ANNOTATIONS_LEVELS: index
- name: Create manifest list and push - name: Create manifest list and push
working-directory: /tmp/digests working-directory: /tmp/digests
@ -255,13 +255,14 @@ jobs:
IFS=$'\n' IFS=$'\n'
IMAGES_LIST=($IMAGES) IMAGES_LIST=($IMAGES)
ANNOTATIONS_LIST=($DOCKER_METADATA_OUTPUT_ANNOTATIONS) ANNOTATIONS_LIST=($DOCKER_METADATA_OUTPUT_ANNOTATIONS)
TAGS_LIST=($DOCKER_METADATA_OUTPUT_TAGS)
for REPO in "${IMAGES_LIST[@]}"; do for REPO in "${IMAGES_LIST[@]}"; do
echo docker buildx imagetools create \ 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 -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \
$(printf "$REPO@sha256:%s " *) $(printf "$REPO@sha256:%s " *)
docker buildx imagetools create \ 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 -- " --annotation %q" "${ANNOTATIONS_LIST[@]}") \
$(printf "$REPO@sha256:%s " *) $(printf "$REPO@sha256:%s " *)
done done