Skip to content

Commit 94e04e2

Browse files
committed
chore: try different approach to escaping
1 parent 185356c commit 94e04e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/wc-build-push.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)