Skip to content

Commit 8e31de0

Browse files
committed
chore: trying ai suggestions
1 parent ad6d460 commit 8e31de0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,13 @@ jobs:
128128
set -xEeuo pipefail
129129
130130
# shellcheck disable=SC2046
131+
ANNOTATIONS=$(echo '${{ steps.metadata.outputs.json }}' | jq -cr '.annotations | map("--annotation \"" + . + "\"") | join(" ")')
132+
TAGS=$(echo '${{ steps.metadata.outputs.json }}' | jq -cr '.tags | map("--tag " + . + "\"") | join(" ")')
133+
134+
# Build the command and execute it
131135
docker buildx imagetools create \
132-
$(echo '${{ steps.metadata.outputs.json }}' | jq -cr '.annotations | map("--annotation " + @sh) | join(" ")') \
133-
$(echo '${{ steps.metadata.outputs.json }}' | jq -cr '.tags | map("--tag " + @sh) | join(" ")') \
136+
$ANNOTATIONS \
137+
$TAGS \
134138
$(printf '${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}@sha256:%s ' *)
135139
- name: Inspect manifest and extract digest
136140
id: inspect-manifest

0 commit comments

Comments
 (0)