Skip to content

Commit a821c70

Browse files
Merge pull request #136 from multiversx/MX-16644-docker-multiarch
Update workflow to push both platforms under same tag
2 parents a41689c + 2552da2 commit a821c70

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/deploy-docker.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ on:
88
release:
99
types: [published]
1010
pull_request:
11+
workflow_dispatch:
1112

1213
jobs:
1314
build-docker-image:
14-
runs-on: [ubuntu-22.04]
15-
strategy:
16-
matrix:
17-
platform: [linux/amd64, linux/arm64]
15+
runs-on: ubuntu-22.04
1816

1917
steps:
2018
- name: Check out code into the Go module directory
@@ -25,10 +23,9 @@ jobs:
2523
uses: docker/metadata-action@v5
2624
with:
2725
images: ${{ env.REGISTRY_HOSTNAME }}/${{ env.IMAGE_NODE }}
28-
26+
2927
# TODO: remove this when https://github.com/actions/runner-images/issues/11471 is fully resolved
3028
- name: Set up QEMU for ARM64
31-
if: matrix.platform == 'linux/arm64'
3229
uses: docker/setup-qemu-action@v3
3330

3431
- name: Set up Docker Buildx
@@ -47,7 +44,7 @@ jobs:
4744
with:
4845
context: .
4946
file: ./docker/Dockerfile
50-
platforms: ${{ matrix.platform }}
47+
platforms: linux/amd64,linux/arm64
5148
push: ${{ github.event_name != 'pull_request' }}
5249
tags: ${{ steps.meta.outputs.tags }}
5350
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)