Skip to content

Commit

Permalink
use earthly to push multi-arch
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
  • Loading branch information
mauromorales committed Nov 27, 2023
1 parent 88b9d62 commit 631b7c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/reusable-build-framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
insecure = true
http = true
EOF
earthly +multi-build-framework-image --SECURITY_PROFILE=${{ inputs.security_profile }} --VERSION=master
docker push "$ARTIFACT" # Otherwise .RepoDigests will be empty for some reason
# Push with earthly so it pushes the multi-arch properly
earthly --push +multi-build-framework-image --SECURITY_PROFILE=${{ inputs.security_profile }} --VERSION=master
# Fetch the RepoDigests for the mutli-arch image
docker pull "$ARTIFACT"
cosign sign $(docker image inspect --format='{{index .RepoDigests 0}}' "$ARTIFACT")

0 comments on commit 631b7c7

Please sign in to comment.