File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change 11name : Testing docker multiplatform builds
22run-name : Testing docker multiplatform builds
33
4+ env :
5+ DOCKER_URL : " erigontech/dev-erigon:test-oleksandr"
6+
47on :
58 workflow_dispatch :
69
710jobs :
811
9- build-architecture :
12+ build-archs :
1013 runs-on : ${{ matrix.runner }}
1114 timeout-minutes : 15
1215 strategy :
4043 --attest type=provenance,mode=max \
4144 --push --platform linux/${{ matrix.arch }} \
4245 --progress plain \
43- -t erigontech/dev-erigon:test-oleksandr -${{ matrix.docker-tag }} -f Dockerfile-mp .
46+ -t ${{ env.DOCKER_URL }} -${{ matrix.docker-tag }} -f Dockerfile-mp .
4447
4548
49+ build-final-image :
50+ runs-on : ubuntu-24.04
51+ timeout-minutes : 10
52+ steps :
53+
54+ - name : Login to Docker Hub
55+ uses : docker/login-action@v3
56+ with :
57+ username : ${{ secrets.ORG_DOCKERHUB_ERIGONTECH_USERNAME }}
58+ password : ${{ secrets.ORG_DOCKERHUB_ERIGONTECH_TOKEN }}
59+
60+ - name : Set up Docker Buildx
61+ uses : docker/setup-buildx-action@v3
62+
63+ - name : Build multiplatform image
64+ run : |
65+ docker manifest create \
66+ ${{ env.DOCKER_URL }} \
67+ --amend ${{ env.DOCKER_URL }}-amd64-v2 \
68+ --amend ${{ env.DOCKER_URL }}-arm64
69+ docker manifest push ${{ env.DOCKER_URL }}
You can’t perform that action at this time.
0 commit comments