File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build-builder
2+
3+ on :
4+ push :
5+ branches : [ builder ]
6+ schedule :
7+ - cron : ' 30 0 * * *'
8+
9+ env :
10+ GO_VERSION : 1.19.2
11+
12+ jobs :
13+
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v3
18+ with :
19+ ref : builder
20+
21+ - uses : docker/setup-qemu-action@v2
22+ - uses : docker/setup-buildx-action@v2
23+
24+ - uses : docker/login-action@v2
25+ with :
26+ username : ${{ secrets.DOCKERHUB_USERNAME }}
27+ password : ${{ secrets.DOCKERHUB_TOKEN }}
28+
29+ - uses : docker/build-push-action@v3
30+ with :
31+ context : .
32+ push : true
33+ tags : lwch/natpass-builder:${{ env.GO_VERSION }}
34+ build-args : |
35+ GO_VERSION=${{ env.GO_VERSION }}
Original file line number Diff line number Diff line change 1+ name : build-release
2+
3+ on :
4+ push :
5+ branches : [ release ]
6+ schedule :
7+ - cron : ' 30 0 * * *'
8+
9+ jobs :
10+
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ with :
16+ ref : release
17+
18+ - uses : docker/setup-qemu-action@v2
19+ - uses : docker/setup-buildx-action@v2
20+
21+ - uses : docker/login-action@v2
22+ with :
23+ username : ${{ secrets.DOCKERHUB_USERNAME }}
24+ password : ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+ - uses : docker/build-push-action@v3
27+ with :
28+ context : .
29+ push : true
30+ tags : lwch/natpass-release
You can’t perform that action at this time.
0 commit comments