2024-09-04 13:43:52 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.gitea-actions-runner = {
|
|
|
|
package = pkgs.forgejo-actions-runner;
|
|
|
|
instances.default = {
|
|
|
|
enable = true;
|
|
|
|
name = config.networking.hostName;
|
|
|
|
url = "https://git.chir.rs";
|
|
|
|
# Obtaining the path to the runner token file may differ
|
|
|
|
tokenFile = config.sops.secrets."services/forgejo-runner".path;
|
2024-10-13 09:56:03 +00:00
|
|
|
labels = ["docker"];
|
2024-09-04 13:43:52 +00:00
|
|
|
};
|
2024-10-13 08:48:08 +00:00
|
|
|
instances.darkkirb = {
|
|
|
|
enable = true;
|
|
|
|
name = config.networking.hostName;
|
|
|
|
url = "https://git.chir.rs";
|
|
|
|
# Obtaining the path to the runner token file may differ
|
|
|
|
tokenFile = config.sops.secrets."services/forgejo-runner-darkkirb".path;
|
|
|
|
labels = [
|
|
|
|
"ubuntu-latest:docker://node:16-bullseye"
|
|
|
|
"ubuntu-22.04:docker://node:16-bullseye"
|
|
|
|
"ubuntu-20.04:docker://node:16-bullseye"
|
|
|
|
"ubuntu-18.04:docker://node:16-buster"
|
2024-10-13 09:56:03 +00:00
|
|
|
"docker"
|
2024-10-13 08:48:08 +00:00
|
|
|
];
|
|
|
|
};
|
2024-09-04 13:43:52 +00:00
|
|
|
};
|
|
|
|
sops.secrets."services/forgejo-runner" = {};
|
2024-10-13 08:48:08 +00:00
|
|
|
sops.secrets."services/forgejo-runner-darkkirb" = {};
|
2024-09-04 13:43:52 +00:00
|
|
|
}
|