From 03707e9d0175bc19e062a0ca4d0b71f5aa9a9f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 6 Dec 2022 10:05:04 +0100 Subject: nixos/mrpump: add check-suite runner --- nixos/machine/mrpump.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nixos') diff --git a/nixos/machine/mrpump.nix b/nixos/machine/mrpump.nix index e3af017..623f438 100644 --- a/nixos/machine/mrpump.nix +++ b/nixos/machine/mrpump.nix @@ -56,12 +56,13 @@ with lib; # Gitlab runner systemd.services.gitlab-runner.serviceConfig = let + name2var = name: replaceStrings ["-"] ["_"] (toUpper name); runners = project: [ { name = "MrPump Docker (${project})"; url = "https://gitlab.com"; id = 18138767; - token = "@TOKEN_${toUpper project}_DOCKER@"; + token = "@TOKEN_${name2var project}_DOCKER@"; executor = "docker"; docker = { image = "alpine"; @@ -71,7 +72,7 @@ with lib; name = "MrPump Nix (${project})"; url = "https://gitlab.com"; id = 18139391; - token = "@TOKEN_${toUpper project}_NIX@"; + token = "@TOKEN_${name2var project}_NIX@"; executor = "docker"; docker = { image = "local/nix:latest"; @@ -97,7 +98,10 @@ with lib; ]; config = (pkgs.formats.toml{}).generate "gitlab-runner.toml" { concurrent = 1; - runners = (runners "LogC") ++ (runners "NixTurris"); + runners = + (runners "LogC") ++ + (runners "NixTurris") ++ + (runners "Check-Suite"); }; configPath = "$HOME/.gitlab-runner/config.toml"; configureScript = pkgs.writeShellScript "gitlab-runner-configure" '' -- cgit v1.2.3