添加 CI 自动部署 workflow + CMS IP 配置
All checks were successful
Build and Deploy / build-deploy (push) Successful in 46s

This commit is contained in:
2026-06-11 17:58:24 +08:00
parent 53092b52db
commit db90280989
6 changed files with 90 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
# act_runner 配置host 模式2G 内存服务器友好)
log:
level: info
runner:
capacity: 1 # 同时只跑 1 个任务,省内存
timeout: 10m
fetch_timeout: 5s
fetch_interval: 2s
cache:
enabled: true
container:
# host 模式不使用容器;以下保留默认
network: ""
privileged: false
host:
workdir_parent: /var/lib/act_runner/work

13
deploy/act_runner.service Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=Gitea Actions Runner
After=network.target gitea.service
[Service]
ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml
WorkingDirectory=/var/lib/act_runner
Environment=HOME=/root
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target