Skip to content

Commit

Permalink
fix(release): don't try to sign images that haven't been pushed (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
reevejd authored Sep 21, 2023
1 parent ffd863a commit 2dcd4fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,14 @@ jobs:
SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com
- uses: sigstore/cosign-installer@main
if: ${{ inputs.push }}

- name: Write signing key to disk
if: ${{ inputs.push }}
run: echo "${{ secrets.CONTAINER_IMAGE_SIGNING_PRIVATE_KEY }}" > cosign.key

- name: Sign container image
if: ${{ inputs.push }}
run: |
cosign sign --key cosign.key \
-a "repo=${{ github.repository }}" \
Expand Down

0 comments on commit 2dcd4fc

Please sign in to comment.