use buildx to build arm64/amd64 in one go #770
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and publish Mina lightweight network Docker images | |
| on: | |
| push: | |
| branches: ['**'] | |
| schedule: | |
| - cron: "30 1 * * *" | |
| workflow_dispatch: {} | |
| jobs: | |
| build-and-publish-amd64: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 300 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker images (amd64) | |
| run: ./scripts/build-all.sh --docker-hub-user dkijania --mina-release nightly --target-branches compatible --archs amd64 --skip-push --docker-hub-user minaprotocol | |
| build-and-publish-arm64: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 300 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: arm64 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker images (arm64) | |
| run: ./scripts/build-all.sh --docker-hub-user dkijania --mina-release nightly --target-branches compatible --archs arm64 --skip-push --docker-hub-user minaprotocol | |