- Added .forgejo/workflows/ci.yml for thin CI orchestration. - Configured Dockerized Codeberg runner with Nix support in codeberg-runner/. - Added systemd service for persistent runner execution. - Added GEMINI.md for project CI/Nix conventions. - Added Taskfile task for Linux release builds.
20 lines
667 B
YAML
20 lines
667 B
YAML
services:
|
|
runner:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: always
|
|
env_file:
|
|
- ../.env
|
|
environment:
|
|
- GITEA_INSTANCE_URL=${CODEBERG_INSTANCE_URL:-https://codeberg.org}
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${CODEBERG_CI_RUNNER_TOKEN}
|
|
- GITEA_RUNNER_NAME=${CODEBERG_RUNNER_NAME:-laptop-runner}
|
|
- GITEA_RUNNER_LABELS=${CODEBERG_RUNNER_LABELS:-self-hosted,linux,nix}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./runner-data:/data
|
|
# Use host network if you want to access local services easily,
|
|
# but for most cases the default bridge is fine.
|
|
# network_mode: host
|