Files
kiskaadee 954cbc1c7f feat(github_runner): target canopy-homelab organization with RUNNER_SCOPE=org
- github_runner/docker-compose.yml: configure primary runner for RUNNER_SCOPE=org, ORG_NAME=canopy-homelab, APP_LOGIN=canopy-homelab, and state under ../../var/lib/homelab/github_runner/canopy-homelab

- github_runner/.env-example: keep .env strictly scoped to shared GitHub App ID, base64 key, and labels
2026-11-24 01:14:32 -05:00

30 lines
874 B
YAML

x-runner-common: &runner-common
image: ${RUNNER_IMAGE:-github-runner:local}
restart: unless-stopped
environment: &runner-env
EPHEMERAL: ${EPHEMERAL:-true}
RUN_AS_ROOT: "false"
DISABLE_AUTO_UPDATE: ${DISABLE_AUTO_UPDATE:-true}
RUNNER_WORKDIR: /data/work
APP_ID: ${GITHUB_RUNNER_APP_ID:-}
APP_PRIVATE_KEY_B64: ${GITHUB_RUNNER_APP_PRIVATE_KEY_B64:-}
LABELS: ${GITHUB_RUNNER_LABELS:-self-hosted,linux,x64,nix}
services:
github_runner:
<<: *runner-common
build: .
container_name: ${CONTAINER_NAME:-github_runner}
environment:
<<: *runner-env
RUNNER_NAME: ${GITHUB_RUNNER_NAME:-homelab-runner-canopy}
RUNNER_SCOPE: org
APP_LOGIN: canopy-homelab
ORG_NAME: canopy-homelab
volumes:
- ../../var/lib/homelab/github_runner/canopy-homelab:/data
- nix-store:/nix
volumes:
nix-store: {}