a7f67a851b
we have some rogue non-nix runners going around on gitlab-ci therefore we now tag the runners shacklan - inside the shack lan nix - has nix installed
25 lines
773 B
Nix
25 lines
773 B
Nix
{ pkgs, ... }:
|
|
let
|
|
runner-src = builtins.fetchTarball {
|
|
url = "https://gitlab.com/arianvp/nixos-gitlab-runner/-/archive/master/nixos-gitlab-runner-master.tar.gz";
|
|
sha256 = "1s0fy5ny2ygcfvx35xws8xz5ih4z4kdfqlq3r6byxpylw7r52fyi";
|
|
};
|
|
in
|
|
{
|
|
imports = [
|
|
"${runner-src}/gitlab-runner.nix"
|
|
];
|
|
services.gitlab-runner2 = {
|
|
enable = true;
|
|
## registrationConfigurationFile contains:
|
|
# CI_SERVER_URL=<CI server URL>
|
|
# REGISTRATION_TOKEN=<registration secret>
|
|
# RUNNER_TAG_LIST=nix,shacklan
|
|
# RUNNER_NAME=stockholm-runner-$name
|
|
registrationConfigFile = <secrets/shackspace-gitlab-ci>;
|
|
#gracefulTermination = true;
|
|
};
|
|
systemd.services.gitlab-runner2.restartIfChanged = false;
|
|
systemd.services.docker.restartIfChanged = false;
|
|
}
|