From 5286041789a36d604e8a47b87300ed492a9124a8 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Thu, 11 Apr 2024 15:31:31 +0200 Subject: [PATCH 1/2] forgejo: initial runner configuration --- modules/forgejo/actions.nix | 19 +++++++++++++++++++ modules/forgejo/default.nix | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 modules/forgejo/actions.nix diff --git a/modules/forgejo/actions.nix b/modules/forgejo/actions.nix new file mode 100644 index 0000000..84caf32 --- /dev/null +++ b/modules/forgejo/actions.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: +{ + services.gitea-actions-runner = { + package = pkgs.forgejo-actions-runner; + instances."quitte" = { + enable = true; + labels = [ + # provide a debian base with nodejs for actions + "debian-latest:docker://node:18-bullseye" + # fake the ubuntu name, because node provides no ubuntu builds + "ubuntu-latest:docker://node:18-bullseye" + # provide native execution on the host + "native:host" + ]; + #TODO get a token from git.ifsr.de and use it + # tokenfile = /"dev/null"; + }; + }; +} diff --git a/modules/forgejo/default.nix b/modules/forgejo/default.nix index 083e190..2a69af5 100644 --- a/modules/forgejo/default.nix +++ b/modules/forgejo/default.nix @@ -4,9 +4,9 @@ let gitUser = "git"; in { - # imports = [ - # ./actions.nix - # ]; + imports = [ + ./actions.nix + ]; sops.secrets.gitea_ldap_search = { key = "portunus/search-password"; owner = config.services.forgejo.user; From f54d5fd867da73ee8a69ffb890b1159c44d680c2 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Mon, 3 Jun 2024 12:17:34 +0200 Subject: [PATCH 2/2] forgejo actions: disable native for now --- modules/forgejo/actions.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/forgejo/actions.nix b/modules/forgejo/actions.nix index 84caf32..caeb7b3 100644 --- a/modules/forgejo/actions.nix +++ b/modules/forgejo/actions.nix @@ -10,7 +10,7 @@ # fake the ubuntu name, because node provides no ubuntu builds "ubuntu-latest:docker://node:18-bullseye" # provide native execution on the host - "native:host" + # "native:host" ]; #TODO get a token from git.ifsr.de and use it # tokenfile = /"dev/null";