sakura: init woodpecker
This commit is contained in:
parent
c479931551
commit
6b78116d03
3 changed files with 28 additions and 0 deletions
|
@ -11,5 +11,6 @@
|
||||||
./rustypaste.nix
|
./rustypaste.nix
|
||||||
./grafana.nix
|
./grafana.nix
|
||||||
./prometheus.nix
|
./prometheus.nix
|
||||||
|
./woodpecker.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,13 @@ _: {
|
||||||
tls.domains = [{main = "*.notohh.dev";}];
|
tls.domains = [{main = "*.notohh.dev";}];
|
||||||
tls.certresolver = "production";
|
tls.certresolver = "production";
|
||||||
};
|
};
|
||||||
|
woodpecker-server = {
|
||||||
|
rule = "Host(`ci.notohh.dev`)";
|
||||||
|
entrypoints = ["websecure"];
|
||||||
|
service = "woodpecker-server";
|
||||||
|
tls.domains = [{main = "*.notohh.dev";}];
|
||||||
|
tls.certresolver = "production";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
homepage.loadBalancer.servers = [{url = "http://localhost:3005";}];
|
homepage.loadBalancer.servers = [{url = "http://localhost:3005";}];
|
||||||
|
@ -82,6 +89,7 @@ _: {
|
||||||
gitea.loadBalancer.servers = [{url = "http://localhost:3000";}];
|
gitea.loadBalancer.servers = [{url = "http://localhost:3000";}];
|
||||||
rustypaste.loadBalancer.servers = [{url = "http://localhost:8000";}];
|
rustypaste.loadBalancer.servers = [{url = "http://localhost:8000";}];
|
||||||
grafana.loadBalancer.servers = [{url = "http://localhost:3100";}];
|
grafana.loadBalancer.servers = [{url = "http://localhost:3100";}];
|
||||||
|
woodpecker-server.loadBalancer.servers = [{url = "http://localhost:8006";}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
19
hosts/sakura/services/woodpecker.nix
Normal file
19
hosts/sakura/services/woodpecker.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue