File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change 11name : Build and push Docker image to docker hub
22on :
33 push :
4- # Sequence of patterns matched against refs/heads
54 branches :
65 - master
76 - hotfix-update
109jobs :
1110 build-and-push :
1211 name : BuildAndPush
13- runs-on : alpine -latest
12+ runs-on : ubuntu -latest
1413 steps :
15- # This step uses Github's checkout-action: https://github.com/actions/checkout
16- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v3
1715
18- # This step uses Docker's build-push-action: https://github.com/docker/build-push-action
19- - name : Build and push Docker image to docker hub
20- uses : docker/build-push-action@v1.1.0
16+ - name : Set up Docker Buildx
17+ uses : docker/setup-buildx-action@v2
18+
19+ - name : Login to Docker Hub
20+ uses : docker/login-action@v2
2121 with :
2222 username : ${{ secrets.DOCKER_USERNAME }}
2323 password : ${{ secrets.DOCKER_PASSWORD }}
24- repository : quortexio/deployment-tools
25- tag_with_ref : true
24+
25+ - name : Build and push
26+ uses : docker/build-push-action@v4
27+ with :
28+ context : .
29+ push : true
30+ tags : ${{ secrets.DOCKER_USERNAME }}/quortexio/deployment-tools:1.4.1
You can’t perform that action at this time.
0 commit comments