File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,22 @@ jobs:
190190 uses : sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
191191 if : github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
192192
193- - name : Sign container image
193+ - name : Sign hybrid container image
194194 if : github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
195195 run : |
196- IMAGE_FULL="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}"
196+ IMAGE_FULL="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}-hybrid"
197+ for tag in ${{ steps.metadata.outputs.tags }}; do
198+ cosign sign -y --key env://COSIGN_PRIVATE_KEY $IMAGE_FULL:$tag
199+ done
200+ env :
201+ TAGS : ${{ steps.push.outputs.digest }}
202+ COSIGN_EXPERIMENTAL : false
203+ COSIGN_PRIVATE_KEY : ${{ secrets.SIGNING_SECRET }}
204+
205+ - name : Sign experimental container image
206+ if : github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
207+ run : |
208+ IMAGE_FULL="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}-exp"
197209 for tag in ${{ steps.metadata.outputs.tags }}; do
198210 cosign sign -y --key env://COSIGN_PRIVATE_KEY $IMAGE_FULL:$tag
199211 done
You can’t perform that action at this time.
0 commit comments