shack/gitlab-ci: enable graceful shutdown

This commit is contained in:
makefu 2019-07-07 21:18:32 +02:00
parent 497eecef31
commit 19e25f5856
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -13,9 +13,12 @@ in
imports = [
"${runner-src}/gitlab-runner.nix"
];
services.gitlab-runner2.enable = true;
## registrationConfigurationFile contains:
# CI_SERVER_URL=<CI server URL>
# REGISTRATION_TOKEN=<registration secret>
services.gitlab-runner2.registrationConfigFile = <secrets/shackspace-gitlab-ci>;
services.gitlab-runner2 = {
enable = true;
## registrationConfigurationFile contains:
# CI_SERVER_URL=<CI server URL>
# REGISTRATION_TOKEN=<registration secret>
registrationConfigFile = <secrets/shackspace-gitlab-ci>;
gracefulTermination = true;
};
}