2019-06-12 07:56:07 +00:00
|
|
|
{ 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
|
|
|
|
{
|
2019-06-14 21:58:24 +00:00
|
|
|
imports = [
|
2019-06-12 07:56:07 +00:00
|
|
|
"${runner-src}/gitlab-runner.nix"
|
|
|
|
];
|
2019-07-07 19:18:32 +00:00
|
|
|
services.gitlab-runner2 = {
|
|
|
|
enable = true;
|
|
|
|
## registrationConfigurationFile contains:
|
|
|
|
# CI_SERVER_URL=<CI server URL>
|
|
|
|
# REGISTRATION_TOKEN=<registration secret>
|
2020-08-12 21:10:48 +00:00
|
|
|
# RUNNER_TAG_LIST=nix,shacklan
|
|
|
|
# RUNNER_NAME=stockholm-runner-$name
|
2019-07-07 19:18:32 +00:00
|
|
|
registrationConfigFile = <secrets/shackspace-gitlab-ci>;
|
2019-07-07 22:58:38 +00:00
|
|
|
#gracefulTermination = true;
|
2019-07-07 19:18:32 +00:00
|
|
|
};
|
2019-07-07 22:58:38 +00:00
|
|
|
systemd.services.gitlab-runner2.restartIfChanged = false;
|
2019-07-11 07:37:23 +00:00
|
|
|
systemd.services.docker.restartIfChanged = false;
|
2019-06-12 07:56:07 +00:00
|
|
|
}
|