more agents with more logging
This commit is contained in:
parent
6f596de4c1
commit
a5f2a4ada2
3 changed files with 33 additions and 30 deletions
|
@ -9,5 +9,3 @@ pipeline:
|
||||||
- nix --no-sandbox develop --eval-store ./nix-store -c git lfs fetch --all
|
- nix --no-sandbox develop --eval-store ./nix-store -c git lfs fetch --all
|
||||||
- nix --no-sandbox develop --eval-store ./nix-store -c git push github --all --force
|
- nix --no-sandbox develop --eval-store ./nix-store -c git push github --all --force
|
||||||
secrets: [ github_token ]
|
secrets: [ github_token ]
|
||||||
volumes:
|
|
||||||
- /var/lib/woodpecker/nix-store/:/nix/store
|
|
||||||
|
|
|
@ -8,9 +8,6 @@ pipeline:
|
||||||
- nix --no-sandbox develop --eval-store ./nix-store -c statix check ./nixos
|
- nix --no-sandbox develop --eval-store ./nix-store -c statix check ./nixos
|
||||||
- nix --no-sandbox flake check --eval-store ./nix-store
|
- nix --no-sandbox flake check --eval-store ./nix-store
|
||||||
|
|
||||||
volumes:
|
|
||||||
- /var/lib/woodpecker/nix-store/:/nix/store
|
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -5,6 +5,20 @@ let
|
||||||
domain = "ci.cyplo.dev";
|
domain = "ci.cyplo.dev";
|
||||||
path = "/var/lib/woodpecker";
|
path = "/var/lib/woodpecker";
|
||||||
serverContainerName = "woodpecker-server";
|
serverContainerName = "woodpecker-server";
|
||||||
|
agent = {
|
||||||
|
dependsOn = [ "${serverContainerName}" ];
|
||||||
|
volumes = [ "/var/run/podman/podman.sock:/var/run/docker.sock" ];
|
||||||
|
image =
|
||||||
|
"woodpeckerci/woodpecker-agent@sha256:9a98e25ca6fcf7c437ad355cfce53a696c55b9864399a4d456429a20bfb44545";
|
||||||
|
environmentFiles = [ "${config.sops.secrets.gitea-env.path}" ];
|
||||||
|
environment = {
|
||||||
|
WOODPECKER_SERVER = "${serverContainerName}:${toString agentPort}";
|
||||||
|
WOODPECKER_MAX_PROCS = "1";
|
||||||
|
WOODPECKER_DEBUG_PRETTY = "true";
|
||||||
|
WOODPECKER_LOG_LEVEL = "info";
|
||||||
|
};
|
||||||
|
extraOptions = [ "--network=woodpecker" ];
|
||||||
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
imports = [ ../nginx.nix ];
|
imports = [ ../nginx.nix ];
|
||||||
|
@ -27,32 +41,26 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.podman.defaultNetwork.dnsname.enable = true;
|
virtualisation.podman.defaultNetwork.dnsname.enable = true;
|
||||||
virtualisation.oci-containers.containers."${serverContainerName}" = {
|
virtualisation.oci-containers.containers = {
|
||||||
image =
|
"${serverContainerName}" = {
|
||||||
"woodpeckerci/woodpecker-server@sha256:e6027e46a782d50790183b7274a2a2ad3a6c6fb9a645e6af81a16419613c28ea";
|
image =
|
||||||
volumes = [ "woodpecker-server-data:${path}" ];
|
"woodpeckerci/woodpecker-server@sha256:e6027e46a782d50790183b7274a2a2ad3a6c6fb9a645e6af81a16419613c28ea";
|
||||||
environmentFiles = [ "${config.sops.secrets.gitea-env.path}" ];
|
volumes = [ "woodpecker-server-data:${path}" ];
|
||||||
environment = {
|
environmentFiles = [ "${config.sops.secrets.gitea-env.path}" ];
|
||||||
WOODPECKER_OPEN = "false";
|
environment = {
|
||||||
WOODPECKER_ADMIN = "cyplo";
|
WOODPECKER_OPEN = "false";
|
||||||
WOODPECKER_HOST = "https://${domain}";
|
WOODPECKER_ADMIN = "cyplo";
|
||||||
WOODPECKER_GITEA = "true";
|
WOODPECKER_HOST = "https://${domain}";
|
||||||
WOODPECKER_GITEA_URL = "https://git.cyplo.dev";
|
WOODPECKER_GITEA = "true";
|
||||||
|
WOODPECKER_GITEA_URL = "https://git.cyplo.dev";
|
||||||
|
};
|
||||||
|
ports = [ "${toString httpPort}:${toString httpPort}" ];
|
||||||
|
extraOptions = [ "--network=woodpecker" ];
|
||||||
};
|
};
|
||||||
ports = [ "${toString httpPort}:${toString httpPort}" ];
|
woodpecker-agent1 = agent;
|
||||||
extraOptions = [ "--network=woodpecker" ];
|
woodpecker-agent2 = agent;
|
||||||
|
woodpecker-agent3 = agent;
|
||||||
|
woodpecker-agent4 = agent;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.woodpecker-agent = {
|
|
||||||
dependsOn = [ "${serverContainerName}" ];
|
|
||||||
volumes = [ "/var/run/podman/podman.sock:/var/run/docker.sock" ];
|
|
||||||
image =
|
|
||||||
"woodpeckerci/woodpecker-agent@sha256:9a98e25ca6fcf7c437ad355cfce53a696c55b9864399a4d456429a20bfb44545";
|
|
||||||
environmentFiles = [ "${config.sops.secrets.gitea-env.path}" ];
|
|
||||||
environment = {
|
|
||||||
WOODPECKER_SERVER = "${serverContainerName}:${toString agentPort}";
|
|
||||||
WOODPECKER_MAX_PROCS = "2";
|
|
||||||
};
|
|
||||||
extraOptions = [ "--network=woodpecker" ];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue