fix(ci): allow user service for gitea host runner
Some checks failed
Code Review / ai-code-review (push) Has been cancelled

This commit is contained in:
Your Name
2026-05-01 16:24:45 +08:00
parent cb5ab900c4
commit bc295eaec2
4 changed files with 75 additions and 10 deletions

View File

@@ -176,7 +176,8 @@ RESTART_NOW=1 bash ops/runner/install-gitea-host-runner-service.sh
此 script 會:
- 更新 `/home/wooo/act-runner/config.yaml``shutdown_timeout: 1h`
- 安裝 `/etc/systemd/system/gitea-act-runner-host.service`
- 有 passwordless sudo 時安裝 `/etc/systemd/system/gitea-act-runner-host.service`
- 沒有 sudo 時 fallback 到 `~/.config/systemd/user/gitea-act-runner-host.service`
- 停用 Docker-wrapped `gitea-runner` container 的 restart policy
- 拒絕在 `GITEA-ACTIONS-TASK-*` container 正在跑時重啟 runner