Skip to content

Commit

Permalink
use bundle for sign-blobs
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Jan 31, 2024
1 parent ed36f56 commit 13ab2db
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,24 @@ jobs:
# Check if there's any files to archive as tar fails otherwise
if stat dist/bin/* >/dev/null 2>&1; then
cosign sign-blob --yes \
--output-certificate containerd-shim-${{ needs.parse.outputs.runtime }}-v1-crt.pem \
--output-signature containerd-shim-${{ needs.parse.outputs.runtime }}-v1.sig \
--bundle containerd-shim-${{ needs.parse.outputs.runtime }}-v1.bundle \
dist/bin/containerd-shim-${{ needs.parse.outputs.runtime }}-v1
cosign sign-blob --yes \
--output-certificate containerd-shim-${{ needs.parse.outputs.runtime }}d-v1-crt.pem \
--output-signature containerd-shim-${{ needs.parse.outputs.runtime }}d-v1.sig \
--bundle containerd-shim-${{ needs.parse.outputs.runtime }}d-v1.bundle \
dist/bin/containerd-shim-${{ needs.parse.outputs.runtime }}d-v1
cosign sign-blob --yes \
--output-certificate containerd-${{ needs.parse.outputs.runtime }}d-crt.pem \
--output-signature containerd-${{ needs.parse.outputs.runtime }}d.sig \
--bundle containerd-${{ needs.parse.outputs.runtime }}d.bundle \
dist/bin/containerd-${{ needs.parse.outputs.runtime }}d
# Copy the certs to the dist/bin folder
cp *.sig dist/bin/
cp *.pem dist/bin/
else
echo "No files to sign"
fi
# Copy the certs to the dist/bin folder
cp *.sig dist/bin/
cp *.pem dist/bin/
- name: Package artifacts
if: ${{ needs.parse.outputs.runtime != 'wasm' }}
shell: bash
Expand Down

0 comments on commit 13ab2db

Please sign in to comment.