Skip to content

Commit

Permalink
ci: call cosign to sign multiple tags
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Szakaly <alex.szakaly@gmail.com>
  • Loading branch information
alex1989hu committed Feb 1, 2024
1 parent 36e9d20 commit 733cb8f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ jobs:
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
- name: Sign the container images
run: cosign sign --yes ${TAGS}
run: |
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes ${images}
env:
TAGS: ${{ steps.docker_meta.outputs.tags }}
COSIGN_EXPERIMENTAL: 1
DIGEST: ${{ steps.build-and-push.outputs.digest }}

0 comments on commit 733cb8f

Please sign in to comment.