Merge pull request 'Update woodpecker, add agent' (#45) from add-woodpecker-agents into main
Reviewed-on: #45
This commit is contained in:
commit
559cf874c9
2 changed files with 25 additions and 3 deletions
|
@ -1,11 +1,17 @@
|
|||
{config, ...}: {
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
age.secrets.woodpecker.file = ../../secrets/woodpecker.age;
|
||||
|
||||
services = let
|
||||
port = 3007;
|
||||
grpc-port = 9000;
|
||||
in {
|
||||
woodpecker-server = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.woodpecker-server;
|
||||
|
||||
environment = {
|
||||
WOODPECKER_OPEN = "true";
|
||||
|
@ -13,14 +19,30 @@
|
|||
WOODPECKER_ADMIN = "chef";
|
||||
WOODPECKER_HOST = "https://build.buffets.kitchen/";
|
||||
WOODPECKER_SERVER_ADDR = ":${toString port}";
|
||||
WOODPECKER_GRPC_ADDR = ":${toString port}";
|
||||
|
||||
WOODPECKER_GITEA = "true";
|
||||
WOODPECKER_GITEA_URL = "https://buffets.kitchen/";
|
||||
WOODPECKER_FORGEJO = "true";
|
||||
WOODPECKER_FORGEJO_URL = "https://buffets.kitchen/";
|
||||
};
|
||||
|
||||
environmentFile = config.age.secrets.woodpecker.path;
|
||||
};
|
||||
|
||||
woodpecker-agents.agents = {
|
||||
podman = {
|
||||
package = pkgs.unstable.woodpecker-agent;
|
||||
|
||||
environment = {
|
||||
WOODPECKER_SERVER = "localhost:${toString grpc-port}";
|
||||
WOODPECKER_BACKEND = "docker";
|
||||
DOCKER_HOST = "unix:///run/podman/podman.sock";
|
||||
};
|
||||
|
||||
environmentFile = config.age.secrets.woodpecker.path;
|
||||
extraGroups = ["podman"];
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
virtualHosts."build.buffets.kitchen" = {
|
||||
useACMEHost = "buffet.sh";
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue