Skip to content

Commit

Permalink
Use digest when signing.
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Mouat <[email protected]>
  • Loading branch information
amouat committed Nov 7, 2024
1 parent ec20a2e commit 71c7e37
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-and-push-runners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
name: Install crane
uses: imjasonh/[email protected]
-
name: Create and Push Multi-Platform Manifest
name: Create, Push and Sign Multi-Platform Manifest
run: |
X86DIGEST=$(crane digest --platform linux/amd64 amouat/images-bite-back-runner@${{ needs.x86build.outputs.digest }})
ARMDIGEST=$(crane digest --platform linux/arm64 amouat/images-bite-back-runner@${{ needs.armbuild.outputs.digest }})
Expand All @@ -133,9 +133,6 @@ jobs:
docker manifest create amouat/images-bite-back-runner:multi-${{ github.RUN_ID }} \
amouat/images-bite-back-runner@$X86DIGEST \
amouat/images-bite-back-runner@$ARMDIGEST
docker manifest push amouat/images-bite-back-runner:multi-${{ github.RUN_ID }}
-
name: Sign the images with GitHub OIDC Token
run: |
cosign sign -r --yes amouat/images-bite-back-runner:multi-${{ github.RUN_ID }}
MULTIDIGEST=$(docker manifest push amouat/images-bite-back-runner:multi-${{ github.RUN_ID }})
cosign sign -r --yes amouat/images-bite-back-runner@$MULTIDIGEST

0 comments on commit 71c7e37

Please sign in to comment.