core-services-01(drone-runners): prevent them to kill an auto-deployment
This commit is contained in:
parent
fb43cc15e1
commit
57172ba54c
2 changed files with 3 additions and 1 deletions
|
@ -5,9 +5,11 @@ in
|
||||||
{
|
{
|
||||||
services.drone-exec-runner.nix01 = {
|
services.drone-exec-runner.nix01 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
restartIfChanged = false; # Prevent from killing itself as it is a core machine.
|
||||||
env = [
|
env = [
|
||||||
"DRONE_RUNNER_CAPACITY=${toString capacity}"
|
"DRONE_RUNNER_CAPACITY=${toString capacity}"
|
||||||
"CLIENT_DRONE_RPC_HOST=127.0.0.1:${toString config.services.drone-server.port}"
|
"CLIENT_DRONE_RPC_HOST=127.0.0.1:${toString config.services.drone-server.port}"
|
||||||
|
"DRONE_RUNNER_LABELS=nix:true,core:true" # nix-ready and runs on a core machine.
|
||||||
];
|
];
|
||||||
envFile = config.age.secrets.droneKeyFile.path;
|
envFile = config.age.secrets.droneKeyFile.path;
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"klubrz-nur": {
|
"klubrz-nur": {
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"repo": "https://git.rz.ens.wtf/Klub-RZ/nur",
|
"repo": "https://git.rz.ens.wtf/Klub-RZ/nur",
|
||||||
"rev": "420773149ef98de6a19ae6c551f9f4c6b60e0c1c",
|
"rev": "2d9da6ab1f53af1bff116426e79aeb35408681f6",
|
||||||
"type": "git"
|
"type": "git"
|
||||||
},
|
},
|
||||||
"niv": {
|
"niv": {
|
||||||
|
|
Loading…
Reference in a new issue