update gitlab runner config

This commit is contained in:
Leonardo Eugênio 2022-10-06 12:49:48 -03:00
parent 0e2e304264
commit 7c08456872
2 changed files with 19 additions and 0 deletions

18
system/gitlab-runner.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, lib, ... }: {
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
virtualisation.docker.enable = true;
services.gitlab-runner = with lib; {
enable = true;
concurrent = 4;
services = {
ci_test = {
registrationConfigFile = "/srv/gitlab-runner/env/ci_test";
dockerImage = "debian";
};
thoreb_builder = {
registrationConfigFile = "/srv/gitlab-runner/env/thoreb_builder";
dockerImage = "debian";
};
};
};
}