mirror of
https://gitlab.com/rusty-bever/deployment.git
synced 2026-04-08 11:55:47 +02:00
Added extra woodpecker agent
This commit is contained in:
parent
41ce8bd8b5
commit
697923d11e
1 changed files with 18 additions and 2 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue