27 lines
1.2 KiB
YAML
27 lines
1.2 KiB
YAML
# act_runner for octowow.st, run as a container (Docker Compose).
|
|
# Copy this folder to the runner host, fill in .env (see .env.example),
|
|
# then: docker compose up -d
|
|
#
|
|
# The runner auto-registers on first start using the env vars below, then
|
|
# persists its credentials in ./data so restarts don't re-register.
|
|
|
|
services:
|
|
act_runner:
|
|
image: gitea/act_runner:latest
|
|
container_name: octo-act-runner
|
|
restart: always
|
|
environment:
|
|
# Gitea base URL — note the /git path on this instance.
|
|
GITEA_INSTANCE_URL: https://octowow.st/git
|
|
# Registration token from Settings -> Actions -> Runners -> "Create new Runner".
|
|
GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_TOKEN}
|
|
GITEA_RUNNER_NAME: ${RUNNER_NAME:-octo-runner}
|
|
# runs-on label -> image mapping. ubuntu-latest uses the de-facto act image.
|
|
GITEA_RUNNER_LABELS: ubuntu-latest:docker://catthehacker/ubuntu:act-latest
|
|
volumes:
|
|
# Host Docker socket: act_runner spawns job/action containers as siblings.
|
|
# On Docker Desktop (Windows/Mac) this path is provided by the Linux engine.
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
# Persist runner registration + state.
|
|
- ./data:/data
|