Skip to content

Commit 504be3a

Browse files
committed
ci: sign also prod images
1 parent 5350be1 commit 504be3a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/bake.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ jobs:
7777
# how to use cosign.
7878
- name: Sign images
7979
run: |
80-
images=$(echo '${{ steps.build.outputs.metadata }}' |
81-
jq '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"'
82-
)
83-
cosign sign --yes ${images}
80+
echo '${{ steps.build.outputs.metadata }}' | \
81+
jq '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"' | \
82+
xargs cosign sign --yes
8483
8584
security:
8685
name: Security checks

0 commit comments

Comments
 (0)