sakura: init woodpecker

This commit is contained in:
notohh 2023-06-11 05:10:20 -04:00
parent c479931551
commit 6b78116d03
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 28 additions and 0 deletions

View file

@ -11,5 +11,6 @@
./rustypaste.nix
./grafana.nix
./prometheus.nix
./woodpecker.nix
];
}

View file

@ -71,6 +71,13 @@ _: {
tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production";
};
woodpecker-server = {
rule = "Host(`ci.notohh.dev`)";
entrypoints = ["websecure"];
service = "woodpecker-server";
tls.domains = [{main = "*.notohh.dev";}];
tls.certresolver = "production";
};
};
services = {
homepage.loadBalancer.servers = [{url = "http://localhost:3005";}];
@ -82,6 +89,7 @@ _: {
gitea.loadBalancer.servers = [{url = "http://localhost:3000";}];
rustypaste.loadBalancer.servers = [{url = "http://localhost:8000";}];
grafana.loadBalancer.servers = [{url = "http://localhost:3100";}];
woodpecker-server.loadBalancer.servers = [{url = "http://localhost:8006";}];
};
};
};

View file

@ -0,0 +1,19 @@
{config, ...}: {
sops.secrets.woodpecker-server = {};
services.woodpecker-server = {
enable = true;
environment = {
WOODPECKER_SERVER_ADDR = ":8006";
WOODPECKER_HOST = "https://ci.notohh.dev";
WOODPECKER_OPEN = "false";
WOODPECKER_GITEA = "true";
WOODPECKER_GITEA_URL = "https://git.notohh.dev";
WOODPECKER_ADMIN = "notohh";
};
environmentFile = config.sops.secrets.woodpecker-server.path;
};
services.woodpecker-agents.agents.nix = {
enable = true;
};
}