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
2
2
3
3
on :
4
4
push :
5
- branches : ['main']
5
+ branches :
6
+ - ' main'
6
7
7
8
jobs :
8
-
9
- build-and-push-image :
10
- name : Build and push to Docker Hub
9
+ docker :
11
10
runs-on : ubuntu-latest
12
11
steps :
13
12
- name : Checkout
14
13
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
+
15
21
- name : Login to Docker Hub
16
22
uses : docker/login-action@v2
17
23
with :
18
24
username : ${{ secrets.DOCKERHUB_USERNAME }}
19
25
password : ${{ secrets.DOCKERHUB_TOKEN }}
26
+
20
27
- name : Set up Docker Buildx
21
28
uses : docker/setup-buildx-action@v2
29
+
22
30
- name : Build and push
23
31
uses : docker/build-push-action@v4
24
32
with :
You can’t perform that action at this time.
0 commit comments