Skip to content

Commit 216dc3f

Browse files
committed
test2
1 parent a4386e1 commit 216dc3f

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+

Dockerfile-mp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## Multiplatform dockerfile
2+
3+
FROM debian:12-slim
4+
RUN echo "TARGETARCH=${TARGETARCH}" > /INFO.txt

0 commit comments

Comments
 (0)