Skip to content

Commit

Permalink
Fix Cosign signing
Browse files Browse the repository at this point in the history
  • Loading branch information
aguslr committed Sep 12, 2023
1 parent cfc9245 commit 97c6953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ jobs:
--disable-content-trust
- name: Install Cosign
uses: sigstore/cosign-installer@v2
uses: sigstore/cosign-installer@v3.1.2

- name: Sign container image
run: |
cosign sign --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USERNAME }}/${{ env.IMAGE_NAME }}@${TAGS}
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USERNAME }}/${{ env.IMAGE_NAME }}@${TAGS}
env:
TAGS: ${{ steps.push.outputs.digest }}
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_KEY }}
Expand Down

0 comments on commit 97c6953

Please sign in to comment.