Skip to content

Commit 2ea89a3

Browse files
committed
CI: 优化 CI, 增加 rc beta build
1 parent 6c3d33a commit 2ea89a3

File tree

4 files changed

+62
-52
lines changed

4 files changed

+62
-52
lines changed

.github/workflows/docker.yml renamed to .github/workflows/build-release.yaml

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,11 @@
1-
name: Docker Image CI
1+
name: build and release
22

33
on:
44
push:
55
tags:
66
- "v*.*.*"
77

88
jobs:
9-
docker-hub:
10-
runs-on: ubuntu-latest
11-
steps:
12-
-
13-
name: Checkout
14-
uses: actions/checkout@v4
15-
-
16-
name: Login to Docker Hub
17-
uses: docker/login-action@v3
18-
with:
19-
username: xcsoft
20-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
21-
-
22-
name: Set up Docker Build Context
23-
uses: docker/setup-buildx-action@v3
24-
-
25-
name: Build and push
26-
uses: docker/build-push-action@v5
27-
with:
28-
context: .
29-
file: ./Dockerfile
30-
push: true
31-
tags: xcsoft/busuanzi:${{ github.ref_name }}
32-
33-
github-docker:
34-
runs-on: ubuntu-latest
35-
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v4
38-
39-
- name: Login to Docker Hub
40-
if: github.event_name != 'pull_request'
41-
uses: docker/login-action@v1
42-
with:
43-
registry: ghcr.io
44-
username: ${{ github.actor }}
45-
password: ${{ secrets.GITHUB_TOKEN }}
46-
47-
- name: Set up Docker Build Context
48-
uses: docker/setup-buildx-action@v3
49-
50-
- name: Build and push
51-
uses: docker/build-push-action@v5
52-
with:
53-
context: .
54-
file: ./Dockerfile
55-
push: true
56-
tags: ghcr.io/soxft/busuanzi:${{ github.ref_name }}
57-
589
build:
5910
runs-on: ubuntu-latest
6011
steps:

.github/workflows/docker-push.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
- "*-rc"
8+
- "*-beta"
9+
- "*-test"
10+
11+
jobs:
12+
docker-hub:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v4
18+
-
19+
name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: xcsoft
23+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
24+
-
25+
name: Set up Docker Build Context
26+
uses: docker/setup-buildx-action@v3
27+
-
28+
name: Build and push
29+
uses: docker/build-push-action@v5
30+
with:
31+
context: .
32+
file: ./Dockerfile
33+
push: true
34+
tags: xcsoft/busuanzi:${{ github.ref_name }}
35+
36+
github-docker:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v4
41+
42+
- name: Login to Docker Hub
43+
if: github.event_name != 'pull_request'
44+
uses: docker/login-action@v1
45+
with:
46+
registry: ghcr.io
47+
username: ${{ github.actor }}
48+
password: ${{ secrets.GITHUB_TOKEN }}
49+
50+
- name: Set up Docker Build Context
51+
uses: docker/setup-buildx-action@v3
52+
53+
- name: Build and push
54+
uses: docker/build-push-action@v5
55+
with:
56+
context: .
57+
file: ./Dockerfile
58+
push: true
59+
tags: ghcr.io/soxft/busuanzi:${{ github.ref_name }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Build Test
1+
name: Docker / Build Test
22

33
on:
44
push:

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
var (
1111
configPath string
1212
DistPath string
13-
VERSION = "2.8.0"
13+
VERSION = "2.8.1"
1414
)
1515

1616
func Init() {

0 commit comments

Comments
 (0)