Skip to content

Commit 3ced4f1

Browse files
committed
fix(ci): use map with join on annotations
1 parent 329dff3 commit 3ced4f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
run: |
184184
# Create the manifest list and push to both registries
185185
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
186-
$(jq -cr '.annotations | to_entries[] | "--annotation \"\(.value)\""' <<<"$DOCKER_METADATA_OUTPUT_JSON") \
186+
$(jq -cr '.annotations | to_entries | map("--annotation " + @sh "\(.value)") | join(" ")' <<<"$DOCKER_METADATA_OUTPUT_JSON") \
187187
$(printf '${{ github.repository }}@sha256:%s ' *) \
188188
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
189189

0 commit comments

Comments
 (0)