From eefe2f63abf50252f2739d5f77def10190a6570d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> Date: Sun, 24 Oct 2021 01:02:23 +0200 Subject: [PATCH] drop unused gitlab-runner --- roles/gitlab-runner.nix | 25 ------------------------- roles/gitlab-runner.yaml | 3 --- 2 files changed, 28 deletions(-) delete mode 100644 roles/gitlab-runner.nix delete mode 100644 roles/gitlab-runner.yaml diff --git a/roles/gitlab-runner.nix b/roles/gitlab-runner.nix deleted file mode 100644 index 5cfc5e7..0000000 --- a/roles/gitlab-runner.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ pkgs, config, ... }: -## requires this secret in deployment.nix -let - gitlabModule = builtins.fetchTarball { - url = "https://gitlab.com/arianvp/nixos-gitlab-runner/-/archive/9126927c701aa399bd1734e7e5230c3a0010c1b7/nixos-gitlab-runner-9126927c701aa399bd1734e7e5230c3a0010c1b7.tar.gz"; - sha256 = "1s0fy5ny2ygcfvx35xws8xz5ih4z4kdfqlq3r6byxpylw7r52fyi"; - }; -in -{ - imports = [ - "${gitlabModule}/gitlab-runner.nix" - ]; - - sops.keys.gitlab-runner-registration = { - user = "gitlab-runner"; - sopsFile = ./gitlab-runner.yaml; - }; - - services.gitlab-runner2.enable = true; - # The module depends on gitlab-runner to have a "bin" output. - services.gitlab-runner2.package = pkgs.gitlab-runner // { - bin = pkgs.gitlab-runner; - }; - services.gitlab-runner2.registrationConfigFile = config.sops.keys.gitlab-runner-registration.path; -} diff --git a/roles/gitlab-runner.yaml b/roles/gitlab-runner.yaml deleted file mode 100644 index 820c208..0000000 --- a/roles/gitlab-runner.yaml +++ /dev/null @@ -1,3 +0,0 @@ -gitlab-runner-registration: | - CI_SERVER_URL=https://gitlab.com/ - REGISTRATION_TOKEN=ynWzkuM4vNEZkxrUtJFs