Skip to content

Commit 984629b

Browse files
committed
Added main for docker-build
1 parent 8ae903d commit 984629b

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

solutions/github-actions/docker-build.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ name: Docker Build and Push
88
# events but only for the master branch
99
on:
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
1616
jobs:
@@ -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: .

0 commit comments

Comments
 (0)