Skip to content

Commit

Permalink
Merge pull request #1140 from kranurag7/cosign
Browse files Browse the repository at this point in the history
sign images with cosign 2.0
  • Loading branch information
daemon1024 authored Mar 7, 2023
2 parents 73ce4fa + 3fd348f commit 79b8769
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/ci-latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@ jobs:
echo "initdigest=$(jq -r '.["containerimage.digest"]' kubearmor-init.json)" >> $GITHUB_OUTPUT
- name: Sign the Container Images
env:
COSIGN_EXPERIMENTAL: "true"
run: |
cosign sign -r kubearmor/kubearmor@${{ steps.digest.outputs.imagedigest }}
cosign sign -r kubearmor/kubearmor-init@${{ steps.digest.outputs.initdigest }}
cosign sign -r kubearmor/kubearmor@${{ steps.digest.outputs.imagedigest }} --yes
cosign sign -r kubearmor/kubearmor-init@${{ steps.digest.outputs.initdigest }} --yes
push-stable-version:
name: Create KubeArmor stable release
Expand Down Expand Up @@ -149,7 +147,7 @@ jobs:
- name: Install Cosign
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v2.0.0-rc.0'
cosign-release: 'v2.0.0'

- name: Get Image Digest
id: digest
Expand All @@ -161,8 +159,6 @@ jobs:
echo $initdigest
- name: Sign the Container Images
env:
COSIGN_EXPERIMENTAL: "true"
run: |
cosign sign -r kubearmor/kubearmor@${{ steps.digest.outputs.imagedigest }}
cosign sign -r kubearmor/kubearmor-init@${{ steps.digest.outputs.initdigest }}
cosign sign -r kubearmor/kubearmor@${{ steps.digest.outputs.imagedigest }} --yes
cosign sign -r kubearmor/kubearmor-init@${{ steps.digest.outputs.initdigest }} --yes

0 comments on commit 79b8769

Please sign in to comment.