Update woodpecker, add agent #45
2 changed files with 23 additions and 1 deletions
|
@ -1,11 +1,17 @@
|
||||||
{config, ...}: {
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
age.secrets.woodpecker.file = ../../secrets/woodpecker.age;
|
age.secrets.woodpecker.file = ../../secrets/woodpecker.age;
|
||||||
|
|
||||||
services = let
|
services = let
|
||||||
port = 3007;
|
port = 3007;
|
||||||
|
grpc-port = 9000;
|
||||||
in {
|
in {
|
||||||
woodpecker-server = {
|
woodpecker-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.unstable.woodpecker-server;
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
WOODPECKER_OPEN = "true";
|
WOODPECKER_OPEN = "true";
|
||||||
|
@ -13,6 +19,7 @@
|
||||||
WOODPECKER_ADMIN = "chef";
|
WOODPECKER_ADMIN = "chef";
|
||||||
WOODPECKER_HOST = "https://build.buffets.kitchen/";
|
WOODPECKER_HOST = "https://build.buffets.kitchen/";
|
||||||
WOODPECKER_SERVER_ADDR = ":${toString port}";
|
WOODPECKER_SERVER_ADDR = ":${toString port}";
|
||||||
|
WOODPECKER_GRPC_ADDR = ":${toString port}";
|
||||||
|
|
||||||
WOODPECKER_FORGEJO = "true";
|
WOODPECKER_FORGEJO = "true";
|
||||||
WOODPECKER_FORGEJO_URL = "https://buffets.kitchen/";
|
WOODPECKER_FORGEJO_URL = "https://buffets.kitchen/";
|
||||||
|
@ -21,6 +28,21 @@
|
||||||
environmentFile = config.age.secrets.woodpecker.path;
|
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 = {
|
nginx = {
|
||||||
virtualHosts."build.buffets.kitchen" = {
|
virtualHosts."build.buffets.kitchen" = {
|
||||||
useACMEHost = "buffet.sh";
|
useACMEHost = "buffet.sh";
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue