woodpecker: make it functional

This commit is contained in:
notohh 2023-06-17 12:56:27 -04:00
parent 4125e664a1
commit afe37c7446
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -5,11 +5,16 @@
enable = true; enable = true;
environment = { environment = {
WOODPECKER_SERVER_ADDR = ":8200"; WOODPECKER_SERVER_ADDR = ":8200";
WOODPECKER_GRPC_ADDR = ":8300";
WOODPECKER_HOST = "https://ci.notohh.dev"; WOODPECKER_HOST = "https://ci.notohh.dev";
WOODPECKER_OPEN = "false"; WOODPECKER_OPEN = "false";
WOODPECKER_GITEA = "true"; WOODPECKER_GITEA = "true";
WOODPECKER_GITEA_URL = "https://git.notohh.dev"; WOODPECKER_GITEA_URL = "https://git.notohh.dev";
WOODPECKER_ADMIN = "notohh"; WOODPECKER_ADMIN = "notohh";
WOODPECKER_AGENT_SECRET = config.sops.secrets.woodpecker-agent-secret.path;
WOODPECKER_LOG_LEVEL = "debug";
WOODPECKER_DEBUG_PRETTY = "true";
WOODPECKER_KEEPALIVE_MIN_TIME = "10s";
}; };
environmentFile = config.sops.secrets.woodpecker-server.path; environmentFile = config.sops.secrets.woodpecker-server.path;
}; };
@ -19,8 +24,12 @@
environment = { environment = {
DOCKER_HOST = "unix:///var/run/docker.sock"; DOCKER_HOST = "unix:///var/run/docker.sock";
WOODPECKER_BACKEND = "docker"; WOODPECKER_BACKEND = "docker";
WOODPECKER_SERVER = "localhost:8200"; WOODPECKER_SERVER = "localhost:8300";
WOODPECKER_AGENT_SECRET = config.sops.secrets.woodpecker-agent-secret.path; WOODPECKER_AGENT_SECRET = config.sops.secrets.woodpecker-agent-secret.path;
WOODPECKER_LOG_LEVEL = "debug";
WOODPECKER_DEBUG_PRETTY = "true";
WOODPECKER_KEEPALIVE_MIN_TIME = "10s";
WOODPECKER_HEALTHCHECK = "true";
}; };
extraGroups = [ extraGroups = [
"docker" "docker"