Skip to content

Commit a8ea668

Browse files
committed
Update workflow to push both platforms under same tag
1 parent 2695bef commit a8ea668

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/deploy-docker.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ on:
44
release:
55
types: [published]
66
pull_request:
7+
workflow_dispatch:
78

89
jobs:
910
push_to_registry:
1011
name: Push Docker image to Docker Hub
1112
runs-on: ubuntu-22.04
12-
strategy:
13-
matrix:
14-
platform: [linux/amd64, linux/arm64]
13+
1514
permissions:
1615
packages: write
1716
contents: read
@@ -40,16 +39,14 @@ jobs:
4039
go build
4140
./chainsimulator --fetch-configs-and-close
4241
43-
# TODO: remove this when https://github.com/actions/runner-images/issues/11471 is fully resolved
4442
- name: Set up QEMU for ARM64
45-
if: matrix.platform == 'linux/arm64'
4643
uses: docker/setup-qemu-action@v3
4744

4845
- name: Set up Docker Buildx
4946
uses: docker/setup-buildx-action@v3
5047

5148
- name: Log in to Docker Hub
52-
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
49+
if: github.event_name != 'pull_request'
5350
uses: docker/login-action@v3
5451
with:
5552
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -67,8 +64,8 @@ jobs:
6764
with:
6865
context: .
6966
file: ./Dockerfile
70-
platforms: ${{ matrix.platform }}
71-
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
67+
platforms: linux/amd64,linux/arm64
68+
push: ${{ github.event_name != 'pull_request' }}
7269
tags: ${{ steps.meta.outputs.tags }}
7370
labels: ${{ steps.meta.outputs.labels }}
7471

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ RUN cp /go/pkg/mod/github.com/multiversx/$(cat /multiversx/go.sum | grep mx-chai
2121

2222
FROM ubuntu:22.04
2323
ARG TARGETARCH
24-
25-
2624
RUN apt-get update && apt-get install -y git curl
2725

2826
COPY --from=builder /multiversx/cmd/chainsimulator /multiversx

0 commit comments

Comments
 (0)