Skip to content

Commit

Permalink
signing support
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmxgti committed Feb 23, 2023
1 parent e8dd649 commit a3cff16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ jobs:
with:
cosign-release: 'v1.13.1'
- name: Get signing key
run: echo "${{ secrets.COSIGN_KEY }}" > cosign.key
run: echo "$KEY" > cosign.key
shell: bash
if: github.event_name != 'pull_request'
env:
KEY: ${{ secrets.COSIGN_KEY }}
- name: Sign container image with annotations from our environment
run: |
cosign sign --key cosign.key \
Expand All @@ -67,4 +70,4 @@ jobs:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
if: github.event_name != 'pull_request'
env:
COSIGN_PASSWORD: "${{ secrets.SIGNING_KEY_PASSWORD}}"
COSIGN_PASSWORD: "${{ secrets.COSIGN_PASSWORD}}"

0 comments on commit a3cff16

Please sign in to comment.