Skip to content

Commit 138b270

Browse files
Merge pull request #6 from ExistingPerson08/ExistingPerson08-patch-1
Update cosign
2 parents 134eef8 + 186cc3a commit 138b270

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/build-hybrid.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)