feat: setup woodpecker CI
This commit is contained in:
parent
c0f0f1fc44
commit
e0994bb549
6 changed files with 44 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
|
||||
extraDomainNames = [
|
||||
"*.buffet.sh"
|
||||
"*.buffets.kitchen"
|
||||
"buffets.kitchen"
|
||||
];
|
||||
};
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
./murmur.nix
|
||||
./nginx.nix
|
||||
./upgrade.nix
|
||||
./woodpecker.nix
|
||||
|
||||
../../users/maintainer
|
||||
];
|
||||
|
|
|
@ -69,6 +69,10 @@ in {
|
|||
DISABLE_REGISTRATION = true;
|
||||
ENABLE_NOTIFY_MAIL = true;
|
||||
};
|
||||
|
||||
webhook = {
|
||||
ALLOWED_HOST_LIST = "external,loopback";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
37
hosts/ami/woodpecker.nix
Normal file
37
hosts/ami/woodpecker.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{config, ...}: {
|
||||
age.secrets.woodpecker.file = ../../secrets/woodpecker.age;
|
||||
|
||||
services = let
|
||||
port = 3007;
|
||||
in {
|
||||
woodpecker-server = {
|
||||
enable = true;
|
||||
|
||||
environment = {
|
||||
WOODPECKER_OPEN = "true";
|
||||
WOODPECKER_ORGS = "kitchen";
|
||||
WOODPECKER_ADMIN = "chef";
|
||||
WOODPECKER_HOST = "https://ci.buffets.kitchen/";
|
||||
WOODPECKER_SERVER_ADDR = ":${toString port}";
|
||||
|
||||
WOODPECKER_FORGEJO = "true";
|
||||
WOODPECKER_FORGEJO_URL = "https://buffets.kitchen/";
|
||||
};
|
||||
|
||||
environmentFile = config.age.secrets.woodpecker.path;
|
||||
};
|
||||
|
||||
nginx = {
|
||||
virtualHosts."build.buffets.kitchen" = {
|
||||
useACMEHost = "buffet.sh";
|
||||
forceSSL = true;
|
||||
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,4 +6,5 @@ in {
|
|||
"secrets/hetzner-dns.age".publicKeys = [buffet];
|
||||
"secrets/kitchen-runner-token.age".publicKeys = [buffet];
|
||||
"secrets/msmtppassword.age".publicKeys = [buffet];
|
||||
"secrets/woodpecker.age".publicKeys = [buffet];
|
||||
}
|
||||
|
|
BIN
secrets/woodpecker.age
Normal file
BIN
secrets/woodpecker.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue