aboutsummaryrefslogtreecommitdiff
path: root/nixos/machine
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-12-06 10:05:04 +0100
committerKarel Kočí <cynerd@email.cz>2022-12-06 10:05:04 +0100
commit03707e9d0175bc19e062a0ca4d0b71f5aa9a9f62 (patch)
tree04c852a7b7a25e112ddc2b6fa4e3e478dd0b66cf /nixos/machine
parent9c6072e87d7afe519c2f92c82a9e8b4bd3825193 (diff)
downloadnixos-personal-03707e9d0175bc19e062a0ca4d0b71f5aa9a9f62.tar.gz
nixos-personal-03707e9d0175bc19e062a0ca4d0b71f5aa9a9f62.tar.bz2
nixos-personal-03707e9d0175bc19e062a0ca4d0b71f5aa9a9f62.zip
nixos/mrpump: add check-suite runner
Diffstat (limited to 'nixos/machine')
-rw-r--r--nixos/machine/mrpump.nix10
1 files changed, 7 insertions, 3 deletions
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" ''