Mount config.yaml to pass Docker socket into job containers

This commit is contained in:
2026-05-18 02:07:48 +01:00
parent efcde97f39
commit 73011b46a8
+7 -4
View File
@@ -1,10 +1,12 @@
# act_runner — Gitea Actions self-hosted runner # act_runner — Gitea Actions self-hosted runner
# Deploy on Pi 5 (arrsstack). Registers at instance level — services all repos. # Deploy on the machine running Gitea (same host).
# Registers at instance level — services all repos.
# #
# Setup: # Setup:
# 1. Gitea → Site Administration → Actions → Runners → Create Runner → copy token # 1. Gitea → Site Administration → Actions → Runners → Create Runner → copy token
# 2. echo "RUNNER_TOKEN=<token>" > .env # 2. Create /srv/act-runner/config.yaml (see compose-snippets/act_runner_config.yaml)
# 3. docker compose up -d # 3. echo "RUNNER_TOKEN=<token>" > .env
# 4. docker compose up -d
services: services:
act-runner: act-runner:
@@ -15,11 +17,12 @@ services:
- GITEA_INSTANCE_URL=https://git.thewichersfamily.com - GITEA_INSTANCE_URL=https://git.thewichersfamily.com
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN} - GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
- GITEA_RUNNER_NAME=homelab-pi5 - GITEA_RUNNER_NAME=homelab-pi5
# Maps runs-on: labels to Docker images used for job containers
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:20-bookworm,ubuntu-22.04:docker://node:20-bookworm - GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:20-bookworm,ubuntu-22.04:docker://node:20-bookworm
- CONFIG_FILE=/etc/act_runner/config.yaml
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- act_runner_data:/data - act_runner_data:/data
- /srv/act-runner/config.yaml:/etc/act_runner/config.yaml:ro
volumes: volumes:
act_runner_data: act_runner_data: