File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build-docker-image :
14+ runs-on : [ubuntu-22.04]
1415 strategy :
1516 matrix :
16- runs-on : [ubuntu-22.04]
17- runs-on : ${{ matrix.runs-on }}
17+ platform : [linux/amd64, linux/arm64]
1818
1919 steps :
2020 - name : Check out code into the Go module directory
2626 with :
2727 images : ${{ env.REGISTRY_HOSTNAME }}/${{ env.IMAGE_NODE }}
2828
29+ # TODO: remove this when https://github.com/actions/runner-images/issues/11471 is fully resolved
30+ - name : Set up QEMU for ARM64
31+ if : matrix.platform == 'linux/arm64'
32+ uses : docker/setup-qemu-action@v3
33+
2934 - name : Set up Docker Buildx
3035 uses : docker/setup-buildx-action@v3
3136
4247 with :
4348 context : .
4449 file : ./docker/Dockerfile
45- platforms : linux/amd64,linux/arm64
50+ platforms : ${{ matrix.platform }}
4651 push : ${{ github.event_name != 'pull_request' }}
4752 tags : ${{ steps.meta.outputs.tags }}
4853 labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments