hainich: add gitlab-runner

This commit is contained in:
hexchen 2020-11-29 03:39:23 +00:00
parent b979d4436c
commit a9ffb27289
3 changed files with 20 additions and 0 deletions

View file

@ -15,6 +15,7 @@
# ./k8s.nix # ./k8s.nix
./services/docker.nix ./services/docker.nix
./services/rocket.nix ./services/rocket.nix
./services/gitlab-runner.nix
]; ];
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.version = 2; boot.loader.grub.version = 2;

View file

@ -25,6 +25,11 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/var/lib/gitlab-runner" =
{ device = "dpool/gitlab-runner";
fsType = "zfs";
};
fileSystems."/data" = fileSystems."/data" =
{ device = "dpool/data"; { device = "dpool/data";
fsType = "zfs"; fsType = "zfs";

View file

@ -0,0 +1,14 @@
{config, pkgs, lib, ...}:
{
services.gitlab-runner = {
enable = true;
concurrent = 4;
services.infra4future = {
buildsDir = "/var/lib/gitlab-runner/builds";
dockerImage = "nixos/nix";
executor = "docker";
registrationConfigFile = "/run/gitlab-runner.env";
};
};
}