Skip to content

Commit f4250dc

Browse files
committed
修改actions脚本
1 parent 9ed18eb commit f4250dc

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)