File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 release :
55 types : [published]
66 pull_request :
7+ workflow_dispatch :
78
89jobs :
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 }}
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
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ RUN cp /go/pkg/mod/github.com/multiversx/$(cat /multiversx/go.sum | grep mx-chai
2121
2222FROM ubuntu:22.04
2323ARG TARGETARCH
24-
25-
2624RUN apt-get update && apt-get install -y git curl
2725
2826COPY --from=builder /multiversx/cmd/chainsimulator /multiversx
You can’t perform that action at this time.
0 commit comments