Files
Kanban/deploy/gitea-runner.config.yaml
T
chenshoulin a269694834
CI / verify (push) Successful in 1m41s
CI / 部署到服务器 (push) Successful in 28s
fix(ci): runner 改用 github_mirror 指向 gitea.com
- v5.1.1 不读 DEFAULT_ACTIONS_URL 环境变量(二进制里只暴露 github_mirror),
  改为配置 runner.github_mirror: https://gitea.com,否则 checkout 会去访问不通的 github.com
- systemd 单元去掉无效的 DEFAULT_ACTIONS_URL,避免误导
- 新增 .gitattributes,shell 脚本与服务配置强制 LF
2026-10-19 21:03:51 +08:00

24 lines
700 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Gitea Runner 配置(服务端 /opt/act_runner/config.yaml)
#
# 宿主模式(host):任务直接在本机执行,不额外起容器。
# 本机已装 Node 22,所以 ubuntu-latest 标签映射到 host 而不是 docker 镜像。
# 本机访问 github.com 不通:用 github_mirror 把 action 源替换成 gitea.com
# (v5 只认这个配置项,DEFAULT_ACTIONS_URL 环境变量对它无效)。
log:
level: info
runner:
file: .runner
capacity: 1
timeout: 3h
labels:
- 'ubuntu-latest:host'
github_mirror: 'https://gitea.com'
fetch_timeout: 5s
fetch_interval: 2s
# 单机部署不需要 runner 自带缓存服务,关掉避免额外端口
cache:
enabled: false