File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11name : Build Docker on Release
22permissions :
33 contents : read
4+
45on :
56 workflow_dispatch :
67 inputs :
1011 default : ' manual'
1112 release :
1213 types : [created]
14+
1315jobs :
1416 build-and-push :
1517 runs-on : ubuntu-latest
1618
1719 steps :
1820 - name : Checkout repository
19- uses : actions/checkout@v3
21+ uses : actions/checkout@v4
22+
23+ - name : Set up QEMU
24+ uses : docker/setup-qemu-action@v3
25+ with :
26+ platforms : all
2027
2128 - name : Set up Docker Buildx
2229 uses : docker/setup-buildx-action@v3
@@ -27,12 +34,13 @@ jobs:
2734 username : ${{ secrets.DOCKERHUB_USERNAME }}
2835 password : ${{ secrets.DOCKERHUB_TOKEN }}
2936
30- - name : Build and push Docker image
37+ - name : Build and push multi-arch Docker image
3138 uses : docker/build-push-action@v5
3239 with :
3340 context : .
3441 file : ./Dockerfile
3542 push : true
43+ platforms : linux/amd64,linux/arm64,linux/arm/v7
3644 tags : |
3745 trcloop/crondns:${{ github.ref_name }}
3846 trcloop/crondns:latest
You can’t perform that action at this time.
0 commit comments