Compare commits

...

10 Commits

Author SHA1 Message Date
jeremygan2021
bf91b1c53d new live
Some checks failed
构建并部署 / build-and-deploy (push) Failing after 2m23s
2026-02-13 13:37:36 +08:00
jeremygan2021
0a02fa0cc9 new live 2026-02-13 13:36:17 +08:00
jeremygan2021
fef1f0e9ac t 2026-02-13 13:36:04 +08:00
jeremygan2021
d4bacf669a t 2026-02-13 13:34:32 +08:00
jeremygan2021
2874a7d686 t 2026-02-13 13:34:10 +08:00
jeremygan2021
f89735dda2 t 2026-02-13 13:32:35 +08:00
jeremygan2021
1262ba1f9f new 2026-02-13 13:25:58 +08:00
jeremygan2021
9fae65be6a new 2026-02-13 13:21:20 +08:00
jeremygan2021
417f282e8f new 2026-02-13 13:15:26 +08:00
jeremygan2021
eda6ac25b5 new 2026-02-13 13:14:46 +08:00
2 changed files with 9 additions and 4 deletions

BIN
.gitea/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -5,6 +5,8 @@ on:
push: push:
branches: branches:
- main - main
- master
workflow_dispatch: {}
jobs: jobs:
build-and-deploy: build-and-deploy:
@@ -41,7 +43,7 @@ jobs:
with: with:
context: . context: .
push: true push: true
# 镜像标签,推送到私有 Registry # 镜像标签,推送到私有 Registry/1
tags: 121.43.104.161:6500/quant-speed-page:latest tags: 121.43.104.161:6500/quant-speed-page:latest
# 3. 部署到服务器 # 3. 部署到服务器
@@ -49,10 +51,13 @@ jobs:
# uses: appleboy/ssh-action@master # uses: appleboy/ssh-action@master
# 换用 garygrossgarten/github-action-ssh它不依赖外部下载 # 换用 garygrossgarten/github-action-ssh它不依赖外部下载
uses: garygrossgarten/github-action-ssh@release uses: garygrossgarten/github-action-ssh@release
env:
QUANT_PASSWORD: ${{ secrets.QUANT_PASSWORD }}
with: with:
host: 121.40.192.128 host: 121.40.192.128
port: 22
username: root username: root
password: 123quant-speed password: ${{ secrets.QUANT_PASSWORD }}
command: | command: |
# 停止并删除旧容器 # 停止并删除旧容器
docker stop quant-speed-page || true docker stop quant-speed-page || true
@@ -61,9 +66,9 @@ jobs:
# 拉取最新镜像 # 拉取最新镜像
docker pull 121.43.104.161:6500/quant-speed-page:latest docker pull 121.43.104.161:6500/quant-speed-page:latest
# 启动新容器 # 启动新容器/
docker run -d \ docker run -d \
--name quant-speed-page \ --name quant-speed-page \
--restart unless-stopped \ --restart unless-stopped \
-p 80:80 \ -p 8080:80 \
121.43.104.161:6500/quant-speed-page:latest 121.43.104.161:6500/quant-speed-page:latest