Skip to content

Commit 2aa5cf3

Browse files
committed
Looping container image signing
Signed-off-by: Anders Blockmar <[email protected]>
1 parent 13447b7 commit 2aa5cf3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ jobs:
3737
KO_DEFAULTBASEIMAGE: cgr.dev/chainguard/busybox
3838
KO_DEFAULTPLATFORMS: linux/arm64,linux/amd64
3939
- run: |
40-
echo "signing $(cat allstar.ref)"
41-
cosign sign --yes -a git_sha="$GITHUB_SHA" "$(cat allstar.ref)"
42-
echo "signing $(cat allstar-busybox.ref)"
43-
cosign sign --yes -a git_sha="$GITHUB_SHA" "$(cat allstar-busybox.ref)"
40+
while read ref; do
41+
echo "signing $ref"
42+
cosign sign --yes -a git_sha="$GITHUB_SHA" "$ref"
43+
done < allstar.ref
44+
while read ref; do
45+
echo "signing $ref"
46+
cosign sign --yes -a git_sha="$GITHUB_SHA" "$ref"
47+
done < allstar-busybox.ref
4448
4549
- run: |
4650
gh release create ${{ github.ref_name }} --notes "Images:

0 commit comments

Comments
 (0)