File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,31 @@ name: Build and push to Docker Hub
22
33on :
44 push :
5- branches : ['main']
5+ branches :
6+ - ' main'
67
78jobs :
8-
9- build-and-push-image :
10- name : Build and push to Docker Hub
9+ docker :
1110 runs-on : ubuntu-latest
1211 steps :
1312 - name : Checkout
1413 uses : actions/checkout@v3
14+
15+ - name : Set up QEMU
16+ uses : docker/setup-qemu-action@v2
17+
18+ - name : Set up Docker Buildx
19+ uses : docker/setup-buildx-action@v2
20+
1521 - name : Login to Docker Hub
1622 uses : docker/login-action@v2
1723 with :
1824 username : ${{ secrets.DOCKERHUB_USERNAME }}
1925 password : ${{ secrets.DOCKERHUB_TOKEN }}
26+
2027 - name : Set up Docker Buildx
2128 uses : docker/setup-buildx-action@v2
29+
2230 - name : Build and push
2331 uses : docker/build-push-action@v4
2432 with :
You can’t perform that action at this time.
0 commit comments