29 lines
1.1 KiB
YAML
29 lines
1.1 KiB
YAML
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: ""
|