fix(ci-cd): cap job container memory/cpu to protect weak Gitea host (1.6G)
All checks were successful
CI / test (push) Successful in 4m15s
All checks were successful
CI / test (push) Successful in 4m15s
This commit is contained in:
parent
9eccee0a67
commit
7e3d8fd669
@ -21,6 +21,8 @@ container:
|
|||||||
workdir_parent: /opt/act_runner/work
|
workdir_parent: /opt/act_runner/work
|
||||||
valid_volumes:
|
valid_volumes:
|
||||||
- /var/run/docker.sock
|
- /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)
|
# options: --add-host git.solahqb22.cn:host-gateway # 仅当 EIP hairpin 不通时启用(见计划 6.4)
|
||||||
host:
|
host:
|
||||||
workdir_parent: ""
|
workdir_parent: ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user