fix act-runner: mount config.yaml with container.network=ci
Some checks failed
CI / lint-test (push) Failing after 28s
Deploy / build (push) Failing after 1m51s
Deploy / scan (push) Has been skipped
Deploy / report-vulns (push) Has been skipped

act_runner needs a config file (not env var) to set the Docker
network for job containers. Without this, job containers can't
resolve 'gitea' hostname during checkout.
This commit is contained in:
kert
2026-03-23 21:26:54 -04:00
parent e690c8c9d8
commit f6420d60e1
2 changed files with 15 additions and 1 deletions

13
act-runner/config.yaml Normal file
View File

@@ -0,0 +1,13 @@
log:
level: info
runner:
file: /data/.runner
capacity: 2
timeout: 3h
container:
network: "ci"
privileged: true
options: ""
workdir_parent: ""

View File

@@ -227,10 +227,11 @@ services:
- GITEA_RUNNER_REGISTRATION_TOKEN=${ACT_RUNNER_TOKEN}
- GITEA_RUNNER_NAME=homelab-runner
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://catthehacker/ubuntu:act-latest
- GITEA_RUNNER_CONTAINER_NETWORK=ci
- CONFIG_FILE=/config.yaml
volumes:
- ${DOCKER_SOCK:-/run/user/1000/docker.sock}:/var/run/docker.sock
- act_runner_data:/data
- ./act-runner/config.yaml:/config.yaml:ro
depends_on:
- gitea
restart: unless-stopped