File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
10
- - name : Build and push Docker images
11
- uses : docker/build-push-action@v2
10
+ - name : Set up Docker Buildx
11
+ id : buildx
12
+ uses : docker/setup-buildx-action@master
13
+ - name : Login to DockerHub
14
+ if : github.ref == 'refs/heads/master'
15
+ uses : docker/login-action@v1
12
16
with :
13
17
username : ${{ secrets.DOCKER_USERNAME }}
14
18
password : ${{ secrets.DOCKER_TOKEN }}
15
- # Assume the same repo name on Docker Hub as on GitHub
16
- repository : ${{ github.repository }}
17
- tag_with_ref : true
18
- add_git_labels : true
19
+ - name : Build and push Docker images
20
+ if : github.ref == 'refs/heads/master'
21
+ uses : docker/build-push-action@v2
22
+ with :
23
+ builder : ${{ steps.buildx.outputs.name }}
24
+ tags : ${{ github.repository }}:latest
25
+ push : true
You can’t perform that action at this time.
0 commit comments