35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
# act_runner — Gitea Actions self-hosted runner
|
|
# Runs on arrsstack (10.0.0.104). Gitea is on a separate machine (10.0.0.102).
|
|
# Registers at instance level — services all repos.
|
|
#
|
|
# host mode: jobs run inside the act_runner container.
|
|
# docker and node binaries + their ARM64 shared libraries are mounted from
|
|
# arrsstack's host filesystem so workflow steps can call docker build/push etc.
|
|
#
|
|
# Setup:
|
|
# 1. Gitea → Site Administration → Actions → Runners → Create Runner → copy token
|
|
# 2. Add RUNNER_TOKEN to Portainer stack environment variables
|
|
# 3. Deploy stack
|
|
|
|
services:
|
|
act-runner:
|
|
image: gitea/act_runner:latest
|
|
container_name: act-runner
|
|
restart: unless-stopped
|
|
environment:
|
|
- GITEA_INSTANCE_URL=https://git.thewichersfamily.com
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_TOKEN}
|
|
- GITEA_RUNNER_NAME=homelab-pi5
|
|
- GITEA_RUNNER_LABELS=ubuntu-latest:host,ubuntu-22.04:host
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /usr/bin/docker:/usr/bin/docker:ro
|
|
- /usr/bin/node:/usr/bin/node:ro
|
|
# ARM64 shared libraries required by docker binary
|
|
- /lib/aarch64-linux-gnu/libc.so.6:/lib/aarch64-linux-gnu/libc.so.6:ro
|
|
- /lib/ld-linux-aarch64.so.1:/lib/ld-linux-aarch64.so.1:ro
|
|
- act_runner_data:/data
|
|
|
|
volumes:
|
|
act_runner_data:
|