ci: testing a second runner for general use
This commit is contained in:
parent
3270d3edf4
commit
dd4d8e3b00
1 changed files with 12 additions and 3 deletions
|
@ -47,7 +47,8 @@
|
||||||
pkgs.gitlab-runner
|
pkgs.gitlab-runner
|
||||||
];
|
];
|
||||||
|
|
||||||
age.secrets."${cfg.runner.name}".file = ../secrets/gitlab/runners/${cfg.runner.name}.age;
|
age.secrets.runner_nix.file = ../secrets/gitlab/runners/runner01.age;
|
||||||
|
age.secrets.runner_general.file = ../secrets/gitlab/runners/runner01.age;
|
||||||
|
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1
|
boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1
|
||||||
|
|
||||||
|
@ -61,10 +62,10 @@
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# might make a function later to have multiple runners, might never need it though
|
# might make a function later to have multiple runners, might never need it though
|
||||||
"${cfg.runner.name}" = {
|
runner_nix = {
|
||||||
cloneUrl = cfg.runner.gitlab;
|
cloneUrl = cfg.runner.gitlab;
|
||||||
description = cfg.runner.description;
|
description = cfg.runner.description;
|
||||||
registrationConfigFile = config.age.secrets."${cfg.runner.name}".path;
|
registrationConfigFile = config.age.secrets.runner_nix.path;
|
||||||
dockerImage = cfg.runner.docker.image;
|
dockerImage = cfg.runner.docker.image;
|
||||||
|
|
||||||
# from https://nixos.wiki/wiki/Gitlab_runner
|
# from https://nixos.wiki/wiki/Gitlab_runner
|
||||||
|
@ -96,6 +97,14 @@
|
||||||
PATH = "/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/bin:/sbin:/usr/bin:/usr/sbin";
|
PATH = "/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/bin:/sbin:/usr/bin:/usr/sbin";
|
||||||
NIX_SSL_CERT_FILE = "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt";
|
NIX_SSL_CERT_FILE = "/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt";
|
||||||
};
|
};
|
||||||
|
tagList = [ "nix" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
runner_general = {
|
||||||
|
cloneUrl = cfg.runner.gitlab;
|
||||||
|
description = cfg.runner.description;
|
||||||
|
registrationConfigFile = config.age.secrets.runner_general.path;
|
||||||
|
dockerImage = cfg.runner.docker.image;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue