ci: 部署到腾讯云服务器并启用 Gitea Actions 自动发布
CI / verify (push) Canceled after 1m37s
CI / 部署到服务器 (push) Skipped

- ci.yml 增加 deploy job:verify 全绿后 rsync 到 /opt/kanban/dist 并做线上自检
- runner 与站点同机(host 模式),部署直接写本地目录,不依赖 SSH 密钥与 Secrets
- 站点目录是容器 bind mount,必须原地同步;manual deploy.sh 同步改为 rsync 语义
- 新增 deploy/:容器版 nginx 配置、runner 配置与 systemd 单元、服务器初始化脚本
- README 更新实际部署架构(1Panel + Nginx Proxy Manager 反代)与 runner 说明
This commit is contained in:
chenshoulin
2026-10-19 20:59:38 +08:00
parent 777815704d
commit f9bf1b3eb3
8 changed files with 446 additions and 18 deletions
+21
View File
@@ -0,0 +1,21 @@
# Gitea Runner 配置(服务端 /opt/act_runner/config.yaml)
#
# 宿主模式(host):任务直接在本机执行,不额外起容器。
# 本机已装 Node 22,所以 ubuntu-latest 标签映射到 host 而不是 docker 镜像。
# action 源通过 systemd 的 DEFAULT_ACTIONS_URL 指向 gitea.com(本机访问 github.com 不通)。
log:
level: info
runner:
file: .runner
capacity: 1
timeout: 3h
labels:
- 'ubuntu-latest:host'
fetch_timeout: 5s
fetch_interval: 2s
# 单机部署不需要 runner 自带缓存服务,关掉避免额外端口
cache:
enabled: false