File tree Expand file tree Collapse file tree 1 file changed +24
-13
lines changed
Expand file tree Collapse file tree 1 file changed +24
-13
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313
14- build :
14+ buildx :
1515
1616 runs-on : ubuntu-latest
1717
1818 steps :
19- - uses : actions/checkout@v2
19+ - uses : actions/checkout@v3
2020
21+ - name : qemu setup
22+ uses : docker/setup-qemu-action@v2
23+
24+ - name : docker buildx
25+ uses : docker/setup-buildx-action@v2
26+ with :
27+ config-inline : |
28+ [worker.oci]
29+ max-parallelism = 2
30+
2131 - name : docker login
22- env :
23- DOCKER_USER : ${{ env.DOCKER_USER }}
24- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
25- run : |
26- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
27-
28- - name : docker build
29- run : docker build . --file Dockerfile --tag ${{ env.DOCKER_USER }}/${{ env.DOCKER_REPO }}:latest
30-
31- - name : docker push
32- run : docker push ${{ env.DOCKER_USER }}/${{ env.DOCKER_REPO }}:latest
32+ uses : docker/login-action@v2
33+ with :
34+ username : ${{ env.DOCKER_USER }}
35+ password : ${{ secrets.DOCKER_PASSWORD }}
36+
37+ - name : Build and Push
38+ uses : docker/build-push-action@v3
39+ with :
40+ context : .
41+ platforms : linux/amd64,linux/arm64,linux/arm/v7
42+ push : true
43+ tags : ${{ env.DOCKER_USER }}/${{ env.DOCKER_REPO }}:latest
You can’t perform that action at this time.
0 commit comments