Skip to content

Commit 426e154

Browse files
committed
add cosign
1 parent 08308a5 commit 426e154

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Set up Docker Buildx
2929
uses: docker/setup-buildx-action@v2
3030

31+
- name: Install cosign
32+
uses: sigstore/cosign-installer@v3
33+
3134
- name: Log in to GHCR
3235
uses: docker/login-action@v3
3336
with:
@@ -54,3 +57,8 @@ jobs:
5457
controlplane/netassertv2-l4-client:latest
5558
${{ env.GH_REGISTRY }}/controlplaneio/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
5659
${{ env.GH_REGISTRY }}/controlplaneio/${{ env.IMAGE_NAME }}:latest
60+
61+
- name: Sign artifact
62+
run: cosign sign --yes $DIGEST_URL
63+
env:
64+
DIGEST_URL: ${{ steps.buildpush.outputs.digest }}

0 commit comments

Comments
 (0)