diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-08-12 11:58:24 +0200 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-08-12 11:59:08 +0200 |
| commit | ba6103c4fd99b434e233c9f3c083e70f819479f7 (patch) | |
| tree | adc0f103a3d1e95f829ae49d948c4161c73e320f /hosts/sagittarius/web | |
| parent | b6b98a6c1b06dc89eb16d8f8b32ddc1388218449 (diff) | |
sagittarius: set up forgejo runner
Diffstat (limited to 'hosts/sagittarius/web')
| -rw-r--r-- | hosts/sagittarius/web/git.nix | 19 |
1 files changed, 18 insertions, 1 deletions
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" + ]; + }; + }; } |
