File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,9 +126,15 @@ jobs:
126126 working-directory : ${{ runner.temp }}/digests
127127 run : |
128128 set -Eeuo pipefail
129+
130+ annotations=$(echo '${{ steps.metadata.outputs.json }}' | jq -r '.annotations[]')
131+ for annotation in $annotations; do
132+ annotation_arguments+=(--annotation "$annotation")
133+ done
134+
129135 # shellcheck disable=SC2046
130136 docker buildx imagetools create \
131- $(echo '${{ steps.metadata.outputs.json }}' | jq -r '.annotations | map("--annotation \"" + . + "\"") | join(" ")') \
137+ "${annotation_arguments[@]}" \
132138 $(echo '${{ steps.metadata.outputs.json }}' | jq -r '.tags | map("--tag " + .) | join(" ")') \
133139 $(printf '${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}@sha256:%s ' *)
134140 - name : Inspect manifest and extract digest
You can’t perform that action at this time.
0 commit comments