From 697923d11e4cdc926f319dcc1cc4b843713b86b4 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Thu, 13 Jan 2022 14:29:23 +0100 Subject: [PATCH] Added extra woodpecker agent --- stacks/woodpecker.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/stacks/woodpecker.yml b/stacks/woodpecker.yml index 4f4d527..4ada1b8 100644 --- a/stacks/woodpecker.yml +++ b/stacks/woodpecker.yml @@ -56,7 +56,7 @@ services: volumes: - 'db-data:/var/lib/postgresql/data' - agent: + agent-1: image: 'woodpeckerci/woodpecker-agent:latest' command: agent @@ -64,7 +64,23 @@ services: mode: 'global' placement: constraints: - - 'node.labels.class.ci==true' + - 'node.hostname==gamma' + + environment: + - 'WOODPECKER_SERVER=app:9000' + - 'WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}' + volumes: + - /var/run/docker.sock:/var/run/docker.sock + + agent-2: + image: 'woodpeckerci/woodpecker-agent:latest' + command: agent + + deploy: + mode: 'global' + placement: + constraints: + - 'node.hostname==alpha' environment: - 'WOODPECKER_SERVER=app:9000'