AgentEvalTool/deploy/ci/runner/config.yaml
sinohqb 7e3d8fd669
All checks were successful
CI / test (push) Successful in 4m15s
fix(ci-cd): cap job container memory/cpu to protect weak Gitea host (1.6G)
2026-08-12 17:53:07 +08:00

29 lines
1.1 KiB
YAML
Raw Permalink 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.

log:
level: info
runner:
file: .runner
capacity: 1 # 单人项目串行执行即可
timeout: 1h
fetch_timeout: 5s
fetch_interval: 2s
workdir_parent: /work # runner 容器内路径
labels:
- "agenteval-ci:docker://registry.solahqb22.cn/ci/agenteval-ci:latest"
envs: # 注入所有 job 的环境变量双保险workflow 里也写了)
PIP_INDEX_URL: https://mirrors.aliyun.com/pypi/simple/
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
cache:
enabled: true
dir: /data/cache
container:
# 关键job 容器由宿主机 daemon 创建bind mount 源路径按宿主机解析,
# 因此 job 侧 workdir 必须指向宿主机上与 runner 容器 /work 对应的宿主机路径。
workdir_parent: /opt/act_runner/work
valid_volumes:
- /var/run/docker.sock
# 资源保护147 仅 1.6G 内存/2 核job 必须限内存,否则 OOM 拖垮宿主机
options: "--memory=1g --memory-swap=1g --cpus=1.5"
# options: --add-host git.solahqb22.cn:host-gateway # 仅当 EIP hairpin 不通时启用(见计划 6.4
host:
workdir_parent: ""