diff options
author | lassulus <lassulus@lassul.us> | 2020-11-17 20:01:18 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2020-11-17 20:01:18 +0100 |
commit | 2041c1fb9e1265fa02e443b704bfb55527108954 (patch) | |
tree | 9e34c403594eb4d37bfea8c6813129e0d931aec5 /krebs/2configs/gitlab-runner-shackspace.nix | |
parent | 2fce838d369dfe4dfffc19830272daaba95e2dea (diff) | |
parent | f911324c592ebd7809472a4100a8f6a6c83b0fe2 (diff) |
Merge remote-tracking branch 'gum/20.09' into 20.09
Diffstat (limited to 'krebs/2configs/gitlab-runner-shackspace.nix')
-rw-r--r-- | krebs/2configs/gitlab-runner-shackspace.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/krebs/2configs/gitlab-runner-shackspace.nix b/krebs/2configs/gitlab-runner-shackspace.nix deleted file mode 100644 index f4247b6da..000000000 --- a/krebs/2configs/gitlab-runner-shackspace.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, pkgs, ... }: -let - url = "https://git.shackspace.de/"; - # generate token from CI-token via: - ## gitlab-runner register - ## cat /etc/gitlab-runner/config.toml - token = import <secrets/shackspace-gitlab-ci-token.nix> ; -in { - systemd.services.gitlab-runner.path = [ - "/run/wrappers" # /run/wrappers/bin/su - "/" # /bin/sh - ]; - systemd.services.gitlab-runner.serviceConfig.PrivateTmp = true; - virtualisation.docker.enable = true; - services.gitlab-runner = { - enable = true; - # configFile, configOptions and gracefulTimeout not yet in stable - # gracefulTimeout = "120min"; - configFile = pkgs.writeText "gitlab-runner.cfg" '' - concurrent = 1 - check_interval = 0 - - [[runners]] - name = "krebs-shell" - url = "${url}" - token = "${token}" - executor = "shell" - shell = "sh" - environment = ["PATH=/bin:/run/wrappers/bin:/etc/per-user/gitlab-runner/bin:/etc/per-user-pkgs/gitlab-runner/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"] - [runners.cache] - ''; - }; -} |