Skip to content

Commit

Permalink
fix: add back signing
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Aug 6, 2024
1 parent d43c4cf commit 168c920
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,17 @@ jobs:
--disable-content-trust
# Sign container
# - uses: sigstore/cosign-installer@v3.5.0
# if: github.event_name != 'pull_request'
#
# - name: Sign container image
# if: github.event_name != 'pull_request'
# run: |
# cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.build_image.outputs.image }}@${TAGS}
# env:
# TAGS: ${{ steps.push.outputs.digest }}
# COSIGN_EXPERIMENTAL: false
# COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
- uses: sigstore/cosign-installer@v3.5.0
if: github.event_name != 'pull_request'

- name: Sign container image
if: github.event_name != 'pull_request'
run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.build_image.outputs.image }}@${TAGS}
env:
TAGS: ${{ steps.push.outputs.digest }}
COSIGN_EXPERIMENTAL: false
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}

check:
name: Check all builds successful
Expand Down

0 comments on commit 168c920

Please sign in to comment.