Files
docker_stack/karylab-entrance/config/gitea-runner-config.yml
ChenKaiLiuG 997d078b64 Add FRP
2026-02-28 04:38:23 +08:00

50 lines
1.3 KiB
YAML

log:
level: info
runner:
file: .runner
capacity: 1
# 關鍵:在 runner.envs 注入環境變數給所有 Job 容器
envs:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_VERIFY: ""
env_file: .env
timeout: 3h
shutdown_timeout: 0s
fetch_timeout: 0s
fetch_interval: 2s
# 這裡定義你的 Workflow 可以用的 runs-on 標籤
# 格式: "標籤名:docker://映像檔名"
labels:
- "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"
- "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04"
- "debian-latest:docker://node:16-bullseye"
cache:
enabled: true
dir: ""
host: ""
port: 0
container:
# 留空讓 act_runner 自動建立網路給 job 容器使用
network: ""
enable_ipv6: false
# 關鍵:指定 DinD 的 TCP 地址
# 文檔說明:如果非空且非 "-",將使用指定的 docker host
docker_host: "tcp://docker:2375"
privileged: true # DinD 需要 privileged 模式
# 让 job 容器能解析 hostname
# docker: DinD daemon (使用 gitea-net 中的固定 IP 172.24.0.11)
# server: Gitea 服务器 (使用固定 IP 172.24.0.10)
options: "--add-host=docker:172.24.0.11 --add-host=server:172.24.0.10"
workdir_parent: /workspace
# 允許掛載的路徑,設為無限制以免綁手綁腳
valid_volumes:
- '**'
force_pull: false
host:
workdir_parent: /workspace