Skip to content

Commit

Permalink
chore: Update Docker image signing step in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Jun 3, 2024
1 parent d711d61 commit 29d1db9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ jobs:


# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
TAGS: ${{ steps.docker_meta.outputs.tags }}
run: cosign sign --yes "${TAGS}@${DIGEST}"
- name: Sign image
if: github.event_name != 'pull_request'
run: |
cosign sign -key cosign.key -a ${{ steps.build-and-push.outputs.digest }}

0 comments on commit 29d1db9

Please sign in to comment.