Adding a forgejo runner
This commit is contained in:
parent
1a09ffa481
commit
748796b11e
6 changed files with 68 additions and 26 deletions
30
modules/server/biggoron/runner.nix
Normal file
30
modules/server/biggoron/runner.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, config, ... }: {
|
||||
virtualisation.podman.enable = true;
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "ptigoron";
|
||||
url = "https://git.lyes.eu";
|
||||
# Obtaining the path to the runner token file may differ
|
||||
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
|
||||
tokenFile = config.age.secrets.ptigoron-token.path;
|
||||
labels = [
|
||||
"fedora-rawhide:docker://quay.io/fedora/fedora:rawhide"
|
||||
"fedora-latest:docker://quay.io/fedora/fedora:latest"
|
||||
"ubuntu-rolling:docker://ubuntu:rolling"
|
||||
"ubuntu-latest:docker://ubuntu:latest"
|
||||
"nixos-latest:docker://nixos/nix"
|
||||
## optionally provide native execution on the host:
|
||||
# "native:host"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets.ptigoron-token = {
|
||||
file = ../../../secrets/zora/services/ptigoron-token.age;
|
||||
owner = "gitea-runner";
|
||||
group = "gitea-runner";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue