Skip to content

Commit

Permalink
Merge pull request #10 from soubinan/feature
Browse files Browse the repository at this point in the history
Try fix 4 for cosign sign issue
  • Loading branch information
soubinan authored Dec 3, 2023
2 parents ff2ab36 + fb427da commit 2f2b3a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ jobs:
XOWEB=$XO_WEB
XOSERVER=$XO_SERVER
push: ${{ github.event_name == 'release' }}
- name: Store
if: github.event_name == 'release'
run: |
echo ${{ secrets.COSIGN_PRIVATE_KEY }} > cosign.key
- name: Sign the published container images
if: github.event_name == 'release'
run: |
cosign sign --yes --key env://COSIGN_PRIVATE_KEY "${TAGS}@${DIGEST}"
cosign sign --yes --key cosign.key "${TAGS}@${DIGEST}"
rm cosign.key
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}

0 comments on commit 2f2b3a6

Please sign in to comment.