Skip to content

Commit

Permalink
fix: gh action crc-builder pusher right cmds to push mutli-arch.
Browse files Browse the repository at this point in the history
On 2feca4f the multi-arch builds for crc-builder was fixed. All changes were made on the Makefile, but the gh action for pushing does not rely on Makefile. This commit will replicate those changes into the crc-builder-pusher action.

Signed-off-by: Adrian Riobo <[email protected]>
  • Loading branch information
adrianriobo committed Oct 18, 2024
1 parent 2feca4f commit 7afc955
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/crc-builder-pusher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: crc-builder-pusher

on:
workflow_run:
workflows: crc-builder-builder
workflows: [ 'crc-builder-builder' ]
types:
- completed

Expand Down Expand Up @@ -45,11 +45,19 @@ jobs:

- name: Push crc-builder
run: |
podman load -i crc-builder-linux.tar
podman push ${{ env.image }}-linux
podman load -i crc-builder-windows.tar
# Load
podman load -i crc-builder-linux-arm64.tar
podman load -i crc-builder-linux-amd64.tar
podman load -i crc-builder-windows.tar
podman load -i crc-builder-darwin.tar
# Push
podman push ${{ env.image }}-linux-arm64
podman push ${{ env.image }}-linux-amd64
podman manifest create ${{ env.image }}-linux
podman manifest add ${{ env.image }}-linux docker://${{ env.image }}-linux-arm64
podman manifest add ${{ env.image }}-linux docker://${{ env.image }}-linux-amd64
podman manifest push --all ${{ env.image }}-linux
podman push ${{ env.image }}-windows
podman load -i crc-builder-darwin.tar
podman push ${{ env.image }}-darwin
- name: Download crc-builder-tkn assets
Expand Down

0 comments on commit 7afc955

Please sign in to comment.