From 57172ba54c82d2f26be04662d756c1b609cb04f1 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 26 Jul 2021 03:14:10 +0200 Subject: [PATCH] core-services-01(drone-runners): prevent them to kill an auto-deployment --- machines/core-services-01/drone-runners.nix | 2 ++ machines/core-services-01/nix/sources.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/machines/core-services-01/drone-runners.nix b/machines/core-services-01/drone-runners.nix index 196b1d4..51675ea 100644 --- a/machines/core-services-01/drone-runners.nix +++ b/machines/core-services-01/drone-runners.nix @@ -5,9 +5,11 @@ in { services.drone-exec-runner.nix01 = { enable = true; + restartIfChanged = false; # Prevent from killing itself as it is a core machine. env = [ "DRONE_RUNNER_CAPACITY=${toString capacity}" "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; }; diff --git a/machines/core-services-01/nix/sources.json b/machines/core-services-01/nix/sources.json index 83adeaa..edc3ecf 100644 --- a/machines/core-services-01/nix/sources.json +++ b/machines/core-services-01/nix/sources.json @@ -14,7 +14,7 @@ "klubrz-nur": { "branch": "main", "repo": "https://git.rz.ens.wtf/Klub-RZ/nur", - "rev": "420773149ef98de6a19ae6c551f9f4c6b60e0c1c", + "rev": "2d9da6ab1f53af1bff116426e79aeb35408681f6", "type": "git" }, "niv": {