Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
fix and cleanup cosign run
Browse files Browse the repository at this point in the history
  • Loading branch information
suntorytimed authored Nov 15, 2022
1 parent dfb1540 commit e192c88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,7 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: |
echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" | xargs -I {} cosign sign --key cosign.key {}@${{ steps.build-and-push.outputs.digest }} && echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:10.0" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
echo "ghcr.io/${{ env.IMAGE_NAME }}:latest" | xargs -I {} cosign sign --key cosign.key {}@${{ steps.build-and-push.outputs.digest }} && echo "ghcr.io/${{ env.IMAGE_NAME }}:10.0" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
cosign sign --key cosign.key ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest@${{ steps.build-and-push.outputs.digest }}
cosign sign --key cosign.key ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:10.0@${{ steps.build-and-push.outputs.digest }}
cosign sign --key cosign.key ghcr.io/${{ env.IMAGE_NAME }}:latest@${{ steps.build-and-push.outputs.digest }}
cosign sign --key cosign.key ghcr.io/${{ env.IMAGE_NAME }}:10.0@${{ steps.build-and-push.outputs.digest }}

0 comments on commit e192c88

Please sign in to comment.