Switch to Buildah for container builds #51
1 changed files with 4 additions and 2 deletions
Use --add-host to map localhost to Docker host in job containers
Some checks failed
Test CI / test (pull_request) Failing after 40s
Some checks failed
Test CI / test (pull_request) Failing after 40s
This allows containers to reach Forgejo at localhost:3001 for git operations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
commit
476b80e985
|
|
@ -8,9 +8,11 @@ runner:
|
||||||
timeout: {{ forgejo_runner_timeout }}
|
timeout: {{ forgejo_runner_timeout }}
|
||||||
|
|
||||||
container:
|
container:
|
||||||
# Use host network so containers can reach localhost:3001 (Forgejo)
|
network: "bridge"
|
||||||
network: "host"
|
|
||||||
privileged: {{ forgejo_runner_privileged | lower }}
|
privileged: {{ forgejo_runner_privileged | lower }}
|
||||||
|
# Map localhost to Docker host so containers can reach Forgejo at localhost:3001
|
||||||
|
# host-gateway is a special Docker value that resolves to the host IP
|
||||||
|
options: "--add-host localhost:host-gateway"
|
||||||
# Mount Docker socket so jobs can build containers
|
# Mount Docker socket so jobs can build containers
|
||||||
valid_volumes:
|
valid_volumes:
|
||||||
- /var/run/docker.sock
|
- /var/run/docker.sock
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue