File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,18 @@ jobs:
124124 type=semver,pattern={{major}}
125125 - name : Create manifest list and push
126126 working-directory : ${{ runner.temp }}/digests
127+
127128 run : |
128129 set -xEeuo pipefail
129130
130- # shellcheck disable=SC2046
131+ readarray -t annotations < <(echo '${{ steps.metadata.outputs.json }}' | jq -r '.annotations[] | "--annotation " + @sh')
132+ readarray -t tags < <(echo '${{ steps.metadata.outputs.json }}' | jq -r '.tags[] | "--tag " + @sh')
133+ source=$(printf '${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}@sha256:%s ' *)
134+
131135 docker buildx imagetools create \
132- $(echo '${{ steps.metadata.outputs.json }}' | jq -r '. annotations | map("--annotation " + @sh) | join(" ")') \
133- $(echo '${{ steps.metadata.outputs.json }}' | jq -r '. tags | map("--tag " + @sh) | join(" ")') \
134- $(printf '${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}@sha256:%s ' *)
136+ "${ annotations[@]}" \
137+ "${ tags[@]}" \
138+ $source
135139 - name : Inspect manifest and extract digest
136140 id : inspect-manifest
137141 run : |
You can’t perform that action at this time.
0 commit comments