diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-07 01:28:27 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-07 01:28:27 +0900 |
| commit | c098eec02426f7aff1aa437e327b09dd84e2d61a (patch) | |
| tree | 74cb2825689c7d2ed0bb362d0e65b79d40753f3f /internal | |
| parent | 2f70bd20d13ca699bf61cf2bb37881f029851275 (diff) | |
internal/workflows: document network setup
This gets the cache action working without having to keep the init net
namespace.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/workflows/doc.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/workflows/doc.go b/internal/workflows/doc.go index 24e86b8c..2227e50f 100644 --- a/internal/workflows/doc.go +++ b/internal/workflows/doc.go @@ -48,7 +48,8 @@ The container can be specified via docker-compose: runner: restart: always image: docker.io/gitea/act_runner:nightly - network_mode: host + networks: + - act_runner environment: CONFIG_FILE: /config.yaml GITEA_INSTANCE_URL: "https://git.gensokyo.uk" @@ -61,9 +62,14 @@ The container can be specified via docker-compose: - ./data:/data - ./podman:/var/run/docker.sock + networks: + act_runner: + name: act_runner + Before starting the container, configure act_runner via config.yaml: container: + network: act_runner options: -e PAGER=cat -e MBF_CACHE_DIR=/rosa -e MBF_POISON_OPEN=1 -v /var/lib/rosa:/rosa --security-opt='unmask=/proc/*' |
