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:
parent
bb583f32d0
commit
13e83d301d
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue