gitlab: updated teh runners to have a token each as they should
This commit is contained in:
parent
834ec7cf94
commit
b0d7c51736
4 changed files with 7 additions and 6 deletions
|
@ -47,8 +47,8 @@
|
|||
pkgs.gitlab-runner
|
||||
];
|
||||
|
||||
age.secrets.runner_nix.file = ../secrets/gitlab/runners/runner01.age;
|
||||
age.secrets.runner_general.file = ../secrets/gitlab/runners/runner01.age;
|
||||
age.secrets.runner_01_nix.file = ../secrets/gitlab/runners/runner01.age;
|
||||
age.secrets.runner_02_general.file = ../secrets/gitlab/runners/runner02.age;
|
||||
|
||||
boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1
|
||||
|
||||
|
@ -67,9 +67,9 @@
|
|||
# might make a function later to have multiple runners, might never need it though
|
||||
runner_nix = {
|
||||
cloneUrl = cfg.runner.gitlab;
|
||||
description = cfg.runner.description;
|
||||
description = "For Nix only";
|
||||
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
|
||||
registrationConfigFile = config.age.secrets.runner_nix.path;
|
||||
registrationConfigFile = config.age.secrets.runner_01_nix.path;
|
||||
dockerImage = cfg.runner.docker.image;
|
||||
|
||||
# from https://nixos.wiki/wiki/Gitlab_runner
|
||||
|
@ -106,9 +106,9 @@
|
|||
|
||||
runner_general = {
|
||||
cloneUrl = cfg.runner.gitlab;
|
||||
description = cfg.runner.description;
|
||||
description = "General Runner";
|
||||
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
|
||||
registrationConfigFile = config.age.secrets.runner_general.path;
|
||||
registrationConfigFile = config.age.secrets.runner_02_general.path;
|
||||
dockerImage = cfg.runner.docker.image;
|
||||
};
|
||||
};
|
||||
|
|
Binary file not shown.
BIN
secrets/gitlab/runners/runner02.age
Normal file
BIN
secrets/gitlab/runners/runner02.age
Normal file
Binary file not shown.
|
@ -105,6 +105,7 @@ in
|
|||
"gitlab/ldap_pw.age".publicKeys = users ++ gitlab;
|
||||
|
||||
"gitlab/runners/runner01.age".publicKeys = users ++ gitlab_runners;
|
||||
"gitlab/runners/runner02.age".publicKeys = users ++ gitlab_runners;
|
||||
|
||||
# for ldap
|
||||
"ldap/pw.age".publicKeys = users ++ ldap;
|
||||
|
|
Loading…
Reference in a new issue