39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# act_runner config. The `runner.labels` mapping says: when a workflow
|
|
# requests `runs-on: self-hosted`, spawn the cargoxx-runner-job:latest
|
|
# image (built from runner/flake.nix). Other labels can be added by
|
|
# building additional images and listing them here.
|
|
log:
|
|
level: info
|
|
|
|
runner:
|
|
file: .runner
|
|
capacity: 1
|
|
envs: {}
|
|
labels:
|
|
- "self-hosted:docker://cargoxx-runner-job:latest"
|
|
|
|
cache:
|
|
enabled: false
|
|
|
|
container:
|
|
network: bridge
|
|
privileged: false
|
|
# Bind the binary cache into every job container by referencing the
|
|
# named volumes defined in compose.yml — those, in turn, are bound
|
|
# to ./cache/{store,cache.sec} via `${PWD}` so the path is
|
|
# deployment-relative, not absolute.
|
|
options: "-v cargoxx-cache-store:/srv/cargoxx-cache/store
|
|
-v cargoxx-cache-keys:/srv/cargoxx-cache/keys:ro"
|
|
workdir_parent: /workspace
|
|
# Whitelist regex of bind sources act_runner is allowed to forward to
|
|
# spawned job containers. Must include the cache + key volumes named
|
|
# in `options` above (otherwise act_runner silently strips them).
|
|
valid_volumes:
|
|
- "^cargoxx-cache-store$"
|
|
- "^cargoxx-cache-keys$"
|
|
docker_host: "unix:///var/run/docker.sock"
|
|
force_pull: false
|
|
|
|
host:
|
|
workdir_parent: ""
|