File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ name: Docker Build and Push
88# events but only for the master branch
99on :
1010 push :
11- branches : [ master ]
11+ branches : [master, main ]
1212 pull_request :
13- branches : [ master ]
13+ branches : [master, main ]
1414
1515# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1616jobs :
@@ -21,23 +21,18 @@ jobs:
2121
2222 # Steps represent a sequence of tasks that will be executed as part of the job
2323 steps :
24- -
25- name : Checkout
24+ - name : Checkout
2625 uses : actions/checkout@v2
27- -
28- name : Set up QEMU
26+ - name : Set up QEMU
2927 uses : docker/setup-qemu-action@v1
30- -
31- name : Set up Docker Buildx
28+ - name : Set up Docker Buildx
3229 uses : docker/setup-buildx-action@v1
33- -
34- name : Login to DockerHub
35- uses : docker/login-action@v1
30+ - name : Login to DockerHub
31+ uses : docker/login-action@v1
3632 with :
3733 username : ${{ secrets.DOCKERHUB_USERNAME }}
3834 password : ${{ secrets.DOCKERHUB_TOKEN }}
39- -
40- name : Build and push
35+ - name : Build and push
4136 uses : docker/build-push-action@v2
4237 with :
4338 context : .
You can’t perform that action at this time.
0 commit comments