Skip to content

Commit 89caac8

Browse files
Merge pull request #133 from multiversx/fix-deploy-docker-action
Add workaround for arm64
2 parents 0861748 + daeaa50 commit 89caac8

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/deploy-docker.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ on:
1111

1212
jobs:
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
@@ -26,6 +26,11 @@ jobs:
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

@@ -42,7 +47,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)