From f72713410af7bec3feb0205c5a199267b75e600c Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 17 Nov 2023 02:36:32 +0000 Subject: [PATCH] nixos/gitea: Maybe working CI setup --- nixos/boxes/colony/vms/default.nix | 2 +- .../boxes/colony/vms/whale2/gitea-actions.nix | 5 ++++- secrets/gitea/actions-runner.env.age | 21 +++++++++++-------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/nixos/boxes/colony/vms/default.nix b/nixos/boxes/colony/vms/default.nix index ef7bf51..a1a3c5a 100644 --- a/nixos/boxes/colony/vms/default.nix +++ b/nixos/boxes/colony/vms/default.nix @@ -156,7 +156,7 @@ cpus = 8; threads = 2; }; - memory = 16384; + memory = 32768; networks.vms.mac = "52:54:00:d5:d9:c6"; cleanShutdown.timeout = 120; drives = [ ] ++ (optionals (!config.my.build.isDevVM) [ diff --git a/nixos/boxes/colony/vms/whale2/gitea-actions.nix b/nixos/boxes/colony/vms/whale2/gitea-actions.nix index 0bd9943..6409815 100644 --- a/nixos/boxes/colony/vms/whale2/gitea-actions.nix +++ b/nixos/boxes/colony/vms/whale2/gitea-actions.nix @@ -7,6 +7,7 @@ let cfgFile = pkgs.writeText "gitea-actions-runner.yaml" (toJSON { container = { network = "colony"; + privileged = true; }; cache = { enabled = true; @@ -28,7 +29,9 @@ in main = { enable = true; name = "main-docker"; - labels = [ ]; + labels = [ + "ubuntu-22.04:docker://git.nul.ie/dev/actions-ubuntu:22.04" + ]; url = "https://git.${pubDomain}"; tokenFile = config.age.secrets."gitea/actions-runner.env".path; }; diff --git a/secrets/gitea/actions-runner.env.age b/secrets/gitea/actions-runner.env.age index 5b98860..bd9cfcb 100644 --- a/secrets/gitea/actions-runner.env.age +++ b/secrets/gitea/actions-runner.env.age @@ -1,11 +1,14 @@ -----BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IC9FSlh2ZyA0Ynpx -ZU84aTNs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