Skip to content

Commit

Permalink
fix: add signing tag so that signing works (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas authored Oct 30, 2024
1 parent 8beec6f commit 8b86bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ jobs:
for tag in ${{ steps.generate-tags.outputs.alias_tags }}; do
sudo skopeo copy ${{ steps.rechunk.outputs.ref }} docker://${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}:$tag
done
# Keep one tag for signing
echo "sign_tag=$tag" >> $GITHUB_OUTPUT
- name: Sign container image
uses: EyeCantCU/cosign-action/[email protected]
Expand All @@ -400,7 +402,7 @@ jobs:
containers: ${{ env.IMAGE_NAME }}
registry-token: ${{ secrets.GITHUB_TOKEN }}
signing-secret: ${{ secrets.SIGNING_SECRET }}
tags: ${{ steps.push.outputs.outputs && fromJSON(steps.push.outputs.outputs).digest }}
tags: ${{ steps.push.outputs.sign_tag }}

- name: Echo outputs
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 8b86bf3

Please sign in to comment.