From ba6103c4fd99b434e233c9f3c083e70f819479f7 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Mon, 12 Aug 2024 11:58:24 +0200 Subject: sagittarius: set up forgejo runner --- hosts/sagittarius/web/git.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'hosts/sagittarius/web') diff --git a/hosts/sagittarius/web/git.nix b/hosts/sagittarius/web/git.nix index b352952..6fc6490 100644 --- a/hosts/sagittarius/web/git.nix +++ b/hosts/sagittarius/web/git.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ pkgs, config, ... }: let cfg = config.services.forgejo; srv = cfg.settings.server; @@ -35,4 +35,21 @@ in }; }; }; + + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances.default = { + enable = true; + name = "monolith"; + url = "https://git.sorre.xyz"; + tokenFile = config.sops.secrets."forgejo-runner-token".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" + ]; + }; + }; } -- cgit v1.3.1