From 4a04325bac29d788a570232e559c38cceeb04a94 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 7 Apr 2025 11:43:53 +0200 Subject: [PATCH 1/4] add woodpecker --- systems/hetzner/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index bcb41ea..8720d84 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -140,6 +140,16 @@ in }; }; + services.woodpecker-server = { + enable = true; + environment = { + WOODPECKER_HOST = "https://ci.missing.ninja"; + WOODPECKER_OPEN = "true"; + WOODPECKER_GITEA = "true"; + WOODPECKER_GITEA_URL = "https://git.mixel.cloud"; + }; + }; + users.users.backupftp = { isNormalUser = true; initialPassword = "backupPassword"; From c142ea0996a66b557a32bcc74021fe1517fecd5e Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 7 Apr 2025 11:48:15 +0200 Subject: [PATCH 2/4] show woodpecker trhpugh web --- systems/hetzner/nginx.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/systems/hetzner/nginx.nix b/systems/hetzner/nginx.nix index 3c4ecc9..cf2179a 100644 --- a/systems/hetzner/nginx.nix +++ b/systems/hetzner/nginx.nix @@ -55,6 +55,11 @@ enableACME = true; locations."/".proxyPass = "http://localhost:8080"; }; + "ci.missing.ninja" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://localhost:8000"; + }; "cache.missing.ninja" = { forceSSL = true; enableACME = true; From 374d1c1f218c0f3f6faf0a4ac4b02068b8c13eda Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 7 Apr 2025 12:19:48 +0200 Subject: [PATCH 3/4] add agent --- systems/hetzner/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index 8720d84..fd27852 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -150,6 +150,16 @@ in }; }; + services.woodpecker-agents.agents = { + hetzner = { + enable = true; + environment = { + WOODPECKER_SERVER = "localhost:9000"; + WOODPECKER_MAX_WORKFLOWS = 6; + }; + }; + }; + users.users.backupftp = { isNormalUser = true; initialPassword = "backupPassword"; From b8b210c148d24b345812b776d8b70c5496359426 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 7 Apr 2025 12:21:22 +0200 Subject: [PATCH 4/4] agent number should be string --- systems/hetzner/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index fd27852..875084f 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -155,7 +155,7 @@ in enable = true; environment = { WOODPECKER_SERVER = "localhost:9000"; - WOODPECKER_MAX_WORKFLOWS = 6; + WOODPECKER_MAX_WORKFLOWS = "6"; }; }; };