diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-07 19:06:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-07 19:06:58 +0900 |
| commit | eb25807affba15397851e08f2e848245c016ce7d (patch) | |
| tree | 56ed3e6b4d149b9173033d76a7c010eb033c8eed /internal/workflows/doc.go | |
| parent | bf52aed01a451dc622201bdf6925e537da8c1140 (diff) | |
internal/workflows: use custom runner image
This avoids having to reinstall packages on every run.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/workflows/doc.go')
| -rw-r--r-- | internal/workflows/doc.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/workflows/doc.go b/internal/workflows/doc.go index 2227e50f..123bf7c1 100644 --- a/internal/workflows/doc.go +++ b/internal/workflows/doc.go @@ -53,7 +53,6 @@ The container can be specified via docker-compose: environment: CONFIG_FILE: /config.yaml GITEA_INSTANCE_URL: "https://git.gensokyo.uk" - GITEA_RUNNER_LABELS: "rosa:docker://docker.gitea.com/runner-images:ubuntu-latest" GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" GITEA_RUNNER_NAME: "${RUNNER_NAME}" @@ -80,6 +79,10 @@ Before starting the container, configure act_runner via config.yaml: valid_volumes: - /var/lib/rosa + runner: + labels: + - 'rosa:docker://git.gensokyo.uk/rosa/runner:latest' + where /var/lib/rosa is the absolute pathname of the cache directory in the init namespace. Setting MBF_POISON_OPEN enables cmd/mbf to run as root. It is also a good idea here to set runner.capacity to reflect the capacity of the guest, so |
