File tree 4 files changed +41
-19
lines changed
4 files changed +41
-19
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,28 @@ name: Docker Build and Push
3
3
on :
4
4
push :
5
5
branches : [ "master" ]
6
- workflow_dispatch : # 允许手动触发
6
+ workflow_dispatch : # 手动触发
7
+ schedule :
8
+ - cron : ' 0 0 * * *' # 每天 UTC 时间 00:00 (北京时间 08:00) 运行
7
9
8
10
jobs :
9
11
build-and-push :
10
12
runs-on : ubuntu-latest
11
-
13
+
12
14
steps :
13
- - name : Checkout code
14
- uses : actions/checkout@v4
15
-
16
- - name : Login to Docker Hub
17
- uses : docker/login-action@v2
18
- with :
19
- username : ${{ secrets.DOCKER_HUB_USERNAME }}
20
- password : ${{ secrets.DOCKER_HUB_TOKEN }}
21
-
22
- - name : Build and push
23
- run : |
24
- docker build -t uniapi:latest .
25
- docker tag uniapi:latest ryoshi541/uniapi:latest
26
- docker push ryoshi541/uniapi:latest
15
+ - name : Checkout code
16
+ uses : actions/checkout@v4
17
+ with :
18
+ submodules : ' recursive' # 确保子模块也被检出
19
+
20
+ - name : Login to Docker Hub
21
+ uses : docker/login-action@v2
22
+ with :
23
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
24
+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
25
+
26
+ - name : Build and push
27
+ run : |
28
+ docker build -t uniapi:latest .
29
+ docker tag uniapi:latest ryoshi541/uniapi:latest
30
+ docker push ryoshi541/uniapi:latest
Original file line number Diff line number Diff line change 16
16
17
17
## Star History
18
18
19
- [ ![ Star History Chart] ( https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date )] ( https://www.star-history.com/#NGLSG/UniAPI&Date )
19
+ <a href =" https://www.star-history.com/#NGLSG/UniAPI&Date " >
20
+ <picture >
21
+ <source media =" (prefers-color-scheme: dark) " srcset =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date&theme=dark " />
22
+ <source media =" (prefers-color-scheme: light) " srcset =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date " />
23
+ <img alt =" Star History Chart " src =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date " />
24
+ </picture >
25
+ </a >
20
26
21
27
<a id =" how-to-support-this-project " ></a >
22
28
Original file line number Diff line number Diff line change 14
14
---
15
15
## Star History
16
16
17
- [ ![ Star History Chart] ( https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date )] ( https://www.star-history.com/#NGLSG/UniAPI&Date )
17
+ <a href =" https://www.star-history.com/#NGLSG/UniAPI&Date " >
18
+ <picture >
19
+ <source media =" (prefers-color-scheme: dark) " srcset =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date&theme=dark " />
20
+ <source media =" (prefers-color-scheme: light) " srcset =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date " />
21
+ <img alt =" Star History Chart " src =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date " />
22
+ </picture >
23
+ </a >
18
24
19
25
<a id =" how-to-support-this-project " ></a >
20
26
## 🌟 How to Support This Project
Original file line number Diff line number Diff line change 14
14
---
15
15
## Star History
16
16
17
- [ ![ Star History Chart] ( https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date )] ( https://www.star-history.com/#NGLSG/UniAPI&Date )
17
+ <a href =" https://www.star-history.com/#NGLSG/UniAPI&Date " >
18
+ <picture >
19
+ <source media =" (prefers-color-scheme: dark) " srcset =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date&theme=dark " />
20
+ <source media =" (prefers-color-scheme: light) " srcset =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date " />
21
+ <img alt =" Star History Chart " src =" https://api.star-history.com/svg?repos=NGLSG/UniAPI&type=Date " />
22
+ </picture >
23
+ </a >
18
24
19
25
<a id =" how-to-support-this-project " ></a >
20
26
## 🌟 このプロジェクトをサポートする方法
You can’t perform that action at this time.
0 commit comments