From f10ecf6526de47e6a98170771e4ba756ce5e9861 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 29 Oct 2023 22:39:08 -0500 Subject: [PATCH] feat(luna): working gitlab runner --- hosts/luna/modules/docker/gitlab.nix | 17 ++++++++++++++++- secrets/gitlab-runner-reg-config.age | 10 ++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 secrets/gitlab-runner-reg-config.age diff --git a/hosts/luna/modules/docker/gitlab.nix b/hosts/luna/modules/docker/gitlab.nix index 9d581f4..64eb6ca 100644 --- a/hosts/luna/modules/docker/gitlab.nix +++ b/hosts/luna/modules/docker/gitlab.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, config, specialArgs, ... }: let gitlab_home = "/opt/gitlab"; hostname = "gitlab.orion-technologies.io"; @@ -26,6 +26,21 @@ in 2222 ]; + age.secrets.gitlab-runner-reg-config.file = specialArgs.secrets + "/gitlab-runner-reg-config.age"; + services.gitlab-runner = { + enable = true; + services = { + default = with lib; { + registrationConfigFile = config.age.secrets.gitlab-runner-reg-config.path; + dockerImage = "alpine"; + tagList = [ + "alpine" + "default" + ]; + }; + }; + }; + services.nginx.virtualHosts."${hostname}" = { locations."/".proxyPass = "http://127.0.0.1:8080"; forceSSL = true; diff --git a/secrets/gitlab-runner-reg-config.age b/secrets/gitlab-runner-reg-config.age new file mode 100644 index 0000000..27ef55d --- /dev/null +++ b/secrets/gitlab-runner-reg-config.age @@ -0,0 +1,10 @@ +age-encryption.org/v1 +-> X25519 IF+/D3KyenalWv4UdlGw1IQ/1JMI5iMWUVG+8BKVrFM +8nhRNGgT97TAh4sYtLJzF2DKUGFU3wt2SATvQ6kQr2I +-> piv-p256 4XQpCA A8etpG41eFkUMv0MAjEhzwa0/NpJ8sscstWFva+5Vm9Z +aBxPlgk/H1bwDH28y6QyrFJDSrw8ntotGZW0Hxr91eM +-> }bYmP-grease ZY+YOh?m NO_Zo +2vAUVL3Wle3+ek/ddUsg2OlMFx13qUo4EWSOcW0zuIvdtgABU5ccnHvWCl8TlfMk +UvsdAjOQ41I +--- lVcGWNLfuLYRY6RWXjMRaTHnlWRg3203QUpA6TYVntc +@Cx[GDct]L 92t?M)5uҋ,vvv \rt7Zg&F/6mӳ/YƱ̹tK[.!ݾ \ No newline at end of file