infrastructure/nixos-modules/qois/git-ci-runner
Fabian Hauser eaa5e6b112
All checks were successful
CI / build (push) Successful in 2m38s
Add system nix configuration to git build container
2024-12-10 17:01:14 +02:00
..
default.nix Add system nix configuration to git build container 2024-12-10 17:01:14 +02:00
README.md Use specific nix forgejo CI 2024-10-03 15:10:12 +03:00

Git CI Runner

Runner for the Forgejo git instance.

Default docker/ubuntu Runner

Registers a default runner with ubuntu OS or executes user's OCI container with podman.

Nix runner

We provide a runs-on: nix runner which executes nix commands in a nix user environment on the build server.

Uses previously built derivations, which speeds up builds. Note that user-configured substitutors do not work (this is currently nix limitation of nix.)

⚠️ Builds use the system's nix-store in a unpriviledged mode, so derivations may be seen and used by other builds by this runner. Consequentially, don't use to build nix things that should stay secret (which is a bad idea anyway).

Create Secret Token

To create a new token for registration, follow the steps outlined in the Forgejo documentation.