Setup gitea action runner

This commit is contained in:
2023-09-16 22:26:44 +02:00
parent e5fac39ce8
commit 76f18b459c
3 changed files with 23 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
{ config, ... }:
{
sops.secrets."gitea/runner-token" = { };
services.gitea-actions-runner.instances = {
runner1 = {
url = "https://git-runner1.pvv.ntnu.no";
name = "git-runner1";
labels = [
"debian-latest:docker://node:18-bullseye"
];
enable = true;
tokenFile = config.sops.secrets."gitea/runner-token".path;
};
};
}

View File

@@ -4,6 +4,10 @@ let
domain = "git.pvv.ntnu.no";
sshPort = 2222;
in {
imports = [
./ci.nix
];
sops.secrets = {
"gitea/database" = {
owner = "gitea";