File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Testing docker multiplatform builds
2+ run-name : Testing docker multiplatform builds
3+
4+ on :
5+ workflow_dispatch :
6+
7+ jobs :
8+
9+ build-architecture :
10+ runs-on : ${{ matrix.runner }}
11+ timeout-minutes : 15
12+ strategy :
13+ matrix :
14+ - runner : ubuntu-24.04-arm
15+ arch : arm64
16+ - runner : ubuntu-24.04
17+ arch : amd64
18+
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v5
22+
23+ - name : Login to Docker Hub
24+ uses : docker/login-action@v3
25+ with :
26+ username : ${{ secrets.ORG_DOCKERHUB_ERIGONTECH_USERNAME }}
27+ password : ${{ secrets.ORG_DOCKERHUB_ERIGONTECH_TOKEN }}
28+
29+ - name : Set up Docker Buildx
30+ uses : docker/setup-buildx-action@v3
31+
32+ - name : Build docker image for ${{ matrix.arch }}
33+ run : |
34+ docker buildx build \
35+ --sbom=true \
36+ --attest type=provenance,mode=max \
37+ --push --platform linux/${{ matrix.arch }} \
38+ --progress plain \
39+ -t erigontech/dev-erigon:test-oleksandr-${{ matrix.arch }} -f Dockerfile-mp .
40+
41+
Original file line number Diff line number Diff line change 1+ ## Multiplatform dockerfile
2+
3+ FROM debian:12-slim
4+ RUN echo "TARGETARCH=${TARGETARCH}" > /INFO.txt
You can’t perform that action at this time.
0 commit comments