From b0d7c5173658b8cf773734d37ac980d27aee9cad Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 9 Aug 2023 19:56:30 +0100 Subject: [PATCH] gitlab: updated teh runners to have a token each as they should --- applications/gitlab_runner.nix | 12 ++++++------ secrets/gitlab/runners/runner01.age | Bin 730 -> 722 bytes secrets/gitlab/runners/runner02.age | Bin 0 -> 739 bytes secrets/secrets.nix | 1 + 4 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 secrets/gitlab/runners/runner02.age diff --git a/applications/gitlab_runner.nix b/applications/gitlab_runner.nix index 45186b0..b470701 100644 --- a/applications/gitlab_runner.nix +++ b/applications/gitlab_runner.nix @@ -47,8 +47,8 @@ pkgs.gitlab-runner ]; - age.secrets.runner_nix.file = ../secrets/gitlab/runners/runner01.age; - age.secrets.runner_general.file = ../secrets/gitlab/runners/runner01.age; + age.secrets.runner_01_nix.file = ../secrets/gitlab/runners/runner01.age; + age.secrets.runner_02_general.file = ../secrets/gitlab/runners/runner02.age; boot.kernel.sysctl."net.ipv4.ip_forward" = true; # 1 @@ -67,9 +67,9 @@ # might make a function later to have multiple runners, might never need it though runner_nix = { cloneUrl = cfg.runner.gitlab; - description = cfg.runner.description; + description = "For Nix only"; registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ]; - registrationConfigFile = config.age.secrets.runner_nix.path; + registrationConfigFile = config.age.secrets.runner_01_nix.path; dockerImage = cfg.runner.docker.image; # from https://nixos.wiki/wiki/Gitlab_runner @@ -106,9 +106,9 @@ runner_general = { cloneUrl = cfg.runner.gitlab; - description = cfg.runner.description; + description = "General Runner"; registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ]; - registrationConfigFile = config.age.secrets.runner_general.path; + registrationConfigFile = config.age.secrets.runner_02_general.path; dockerImage = cfg.runner.docker.image; }; }; diff --git a/secrets/gitlab/runners/runner01.age b/secrets/gitlab/runners/runner01.age index 1744c77d0da6bb457324c77cd50dcc637ba1b659..81f1aca14ed751dc26224049fcd9eac7ce1a6bd7 100644 GIT binary patch literal 722 zcmZ9_OKZ~r003Z7&=EZN4;GlRL)N8fle7Vm<<%zXV@=znO+_(D)4bX=%R5uNc$nG$-uaAUTV3G~_Q)X)G$SWcNCxVl+@s;7YrVRUpoM2nalwWS=YMjl&7y@2tGDx7sY6G3Ro z9gg7Xd8%?9CTz42!7Jt>#Tb?=0);{W*I~&&~W+o@w>mb96* XZ^x$ZcaJ`%FRwjw?q6DvmtXw@v`6|{ literal 730 zcmZ9|OKZ~r007{N7jy7&*hLVc7dNw-rdgYYsVr@iHfxeTvOFEbG|QuF9!=8bb@2h} z2EuS4?4}^%9}x87PJ%}T^&l#G*~x49Pgri9i~xd$)=8=s6!YaE(Qpstv-S$#3wTPg@qp@i_6o8R zqP56V4r@WxShg(CbWD9ZCOK&!_F%X~*Q=t#(BzP|4r^J=@B+!WAFt%6xu|<{~jd1JO80{#StQV(jt>=#hLz>|w9V&AF zC($eV{L;DfQo#xhEi%9Yi26&Ts|uKNHES)U06WA`VIX31Q*v63-1J?E|}QB;r9OSKR6`*&;S4c diff --git a/secrets/gitlab/runners/runner02.age b/secrets/gitlab/runners/runner02.age new file mode 100644 index 0000000000000000000000000000000000000000..241398043bb832a01637089bee59b68ea922e019 GIT binary patch literal 739 zcmZ9|$%@lp003aolX1h7qKpJYEri;1Nt?{5Owu;fq-nZk`BT)Hq?7zzvb0UJ;!zM! zb5KMPM7+3NJ*apWR0NNT3VIP=z?&d=oG19;)1jF)-QgmcEytdF-dn(2m`AdgP~RVA z&Fum~=#)!WeHC!cYr!klZ_ER z$zwxU!(%>IQ)ZRYFswKmxXmH1528UFMa?v>6u_wJYMd!swWhtaQw7>nn!-U5w#aba z+O5q=lZOz+1xg#6o?K?;3JrM5#r1-N0YY?#22r2SVpDcG6~rnVAqiv}nxsnYpc1N# zCyj>N3D8>SVurx(E27VQ$^Nj7j(JqLN+G|MT6lxggK33yx@XBB3+^ygL0FY1meE