Skip to content

Commit

Permalink
Fix for cosign workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Dec 23, 2023
1 parent 04e9018 commit 01d3001
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ jobs:
- name: Sign the published container images
if: github.event_name == 'release'
run: |
cosign sign --yes --key env://COSIGN_PRIVATE_KEY "${TAGS}@${DIGEST}"
images=""
for tag in ${TAGS}; do
images+="${tag}@${DIGEST} "
done
cosign sign --yes --key env://COSIGN_PRIVATE_KEY ${images}
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
Expand Down

0 comments on commit 01d3001

Please sign in to comment.