From 967d362f11c28d45920087c2fa7e5a8e4ba04496 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Sat, 28 Sep 2024 23:19:43 -0700 Subject: [PATCH] Configured gitea CI runner --- secrets/gitea-runner-gospel.age | Bin 0 -> 367 bytes secrets/secrets.nix | 1 + systems/x86_64-linux/gospel/default.nix | 15 +++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 secrets/gitea-runner-gospel.age diff --git a/secrets/gitea-runner-gospel.age b/secrets/gitea-runner-gospel.age new file mode 100644 index 0000000000000000000000000000000000000000..c902be28d2d70f6ab26eb0001bd65c8a0f4b62ab GIT binary patch literal 367 zcmV-#0g(P-XJsvAZewzJaCB*JZZ2Q3T0MUQ*C-}MQ&9$ zSTjgfHZW^xRYiJ6NO4RsF-bB+Z)QbFGD%QIZCQG63N1b$b8~1dWn?lnH8D9LQ&~<^ zPEjCdGfG7(c}PfeayctPIX5U*Q))8NEB zYSjwL9Y7WC6OBE`SsbNya#vXo5V5!)fI=}PJ!`&(bDhrscAtIQ(Wxsutq_EV$#1%m NvAU~_({(f#x7T*Jf*t?> literal 0 HcmV?d00001 diff --git a/secrets/secrets.nix b/secrets/secrets.nix index e2ad489..b9696db 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -17,4 +17,5 @@ in { "teslamate_mqtt.age".publicKeys = [users.me machines.pi4 machines.node machines.gospel]; "teslamate_encryption.age".publicKeys = [users.me machines.node machines.gospel]; "hydra-aws-creds.age".publicKeys = [users.me machines.gospel]; + "gitea-runner-gospel.age".publicKeys = [users.me machines.gospel]; } diff --git a/systems/x86_64-linux/gospel/default.nix b/systems/x86_64-linux/gospel/default.nix index 02c35c3..bc8ffb3 100644 --- a/systems/x86_64-linux/gospel/default.nix +++ b/systems/x86_64-linux/gospel/default.nix @@ -9,6 +9,7 @@ ]; age.secrets.cf_dns_kilonull.file = ../../../secrets/cf_dns_kilonull.age; + age.secrets.gitea-runner-gospel.file = ../../../secrets/gitea-runner-gospel.age; aa = { nix.enable = true; @@ -62,6 +63,20 @@ system.monitoring.enable = true; }; + services.gitea-actions-runner.instances = { + gospel = { + enable = true; + name = config.networking.hostName; + url = "https://gitea.kilonull.com"; + tokenFile = config.age.secrets.gitea-runner-gospel.path; + labels = [ + "ubuntu-latest:docker://node:16-bullseye" + "ubuntu-22.04:docker://node:16-bullseye" + "ubuntu-20.04:docker://node:16-bullseye" + "ubuntu-18.04:docker://node:16-buster" + ]; + }; + }; virtualisation = { libvirtd.enable = true;