summaryrefslogtreecommitdiffstats
path: root/2configs/shack/gitlab-runner
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-10-21 00:18:59 +0200
committermakefu <github@syntax-fehler.de>2018-10-21 00:18:59 +0200
commitc6cf053c5fd2db9bec42c250dd6f82fc64ae2bba (patch)
treeed2c6ccdb73ea266b19b16a665d1fbc3be57272b /2configs/shack/gitlab-runner
parent62c865beefbdab0f7b478bbc4d72277bbc85f3d3 (diff)
ma shack/gitlab-ci: maintain own config
Diffstat (limited to '2configs/shack/gitlab-runner')
-rw-r--r--2configs/shack/gitlab-runner/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/2configs/shack/gitlab-runner/default.nix b/2configs/shack/gitlab-runner/default.nix
new file mode 100644
index 000000000..55dc50fa8
--- /dev/null
+++ b/2configs/shack/gitlab-runner/default.nix
@@ -0,0 +1,31 @@
+
+{
+ systemd.services.gitlab-runner.path = [
+ "/run/wrappers" # /run/wrappers/bin/su
+ "/" # /bin/sh
+ ];
+ services.gitlab-runner = {
+ enable = true;
+ configOptions =
+ { concurrent = 1;
+ runners = [
+ { builds_dir = "";
+ #docker =
+ #{ cache_dir = "";
+ # disable_cache = true;
+ # host = ""; image = "nixos/nix:2.1.3";
+ # privileged = true;
+ #};
+ #executor = "docker";
+ # name = "docker-nix";
+ name = "gum-shell";
+ executor = "shell";
+ 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" ];
+ # generate via `gitlab-runner register`
+ token = import <secrets/shackspace-gitlab-ci-token.nix>;
+ url = "https://git.shackspace.de/";
+ }
+ ];
+ };
+ };
+}