- Add gitea_runner/Dockerfile combining nixos/nix (flakes + nodejs + /bin/sleep) with act_runner binary and entrypoint - Update gitea_runner/docker-compose.yml to build locally, mount ~/var/lib/homelab/gitea_runner:/data and nix-store:/nix, remove DOCKER_HOST, and use :host runner labels - Add compose_build to gitea_runner/app.yaml deployment actions - Document runtime env vars and host-mode architecture in gitea_runner/.env-example and README.md
25 lines
678 B
YAML
25 lines
678 B
YAML
services:
|
|
gitea_runner:
|
|
build: .
|
|
image: ${RUNNER_IMAGE:-gitea-runner:local}
|
|
container_name: ${CONTAINER_NAME:-gitea_runner}
|
|
restart: unless-stopped
|
|
environment:
|
|
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-http://gitea:3000}
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN:-}
|
|
- GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME:-homelab-runner}
|
|
- GITEA_RUNNER_LABELS=${GITEA_RUNNER_LABELS:-ubuntu-latest:host,nix:host}
|
|
volumes:
|
|
- ~/var/lib/homelab/gitea_runner:/data
|
|
- nix-store:/nix
|
|
networks:
|
|
- proxy-net
|
|
|
|
volumes:
|
|
nix-store: {}
|
|
|
|
networks:
|
|
proxy-net:
|
|
name: ${PROXY_NETWORK:-proxy-net}
|
|
external: true
|