File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : docker-build-development
2+
3+ env :
4+ dockerhub_repository : " kutt/kutt"
5+ dockerhub_tag : " development"
6+
7+ on :
8+ push :
9+ branches :
10+ - develop
11+
12+ jobs :
13+ dockerhub-build-push :
14+ runs-on : ubuntu-latest
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v2
19+ -
20+ name : Set up QEMU
21+ uses : docker/setup-qemu-action@v1
22+ -
23+ name : Set up Docker Buildx
24+ uses : docker/setup-buildx-action@v1
25+ -
26+ name : Login to DockerHub
27+ uses : docker/login-action@v1
28+ with :
29+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30+ password : ${{ secrets.DOCKERHUB_TOKEN }}
31+ -
32+ name : Build and push
33+ uses : docker/build-push-action@v2
34+ with :
35+ platforms : linux/amd64,linux/arm64
36+ context : .
37+ push : true
38+ tags : ${{ env.dockerhub_repository }}:${{ env.dockerhub_tag }}
39+ -
40+ name : Update repo description
41+ uses : peter-evans/dockerhub-description@v2
42+ with :
43+ username : ${{ secrets.DOCKERHUB_USERNAME }}
44+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
45+ repository : ${{ env.dockerhub_repository }}
You can’t perform that action at this time.
0 commit comments