fix(ci): split cosign steps (#6)

A step can't have both "uses" and "run" so the cosign step needed to be split.
This commit is contained in:
Benjamin Sherman 2024-04-22 13:48:20 -05:00 committed by GitHub
parent bb583f32d0
commit 13e83d301d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,9 +137,10 @@ jobs:
# to consume. For more details, review the image signing section of the README. # to consume. For more details, review the image signing section of the README.
# Sign container # Sign container
- uses: sigstore/cosign-installer@v3.4.0
if: github.event_name != 'pull_request'
- name: Sign container image - name: Sign container image
uses: sigstore/cosign-installer@v3.4.0
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
run: | run: |
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.build_image.outputs.image }}@${TAGS} cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ steps.build_image.outputs.image }}@${TAGS}