Run deployment in background to avoid hanging CI jobs
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
b622765af3
commit
7605702fc1
|
@ -26,9 +26,10 @@ steps:
|
|||
- docker node ls >/dev/null 2>&1 || (echo "Runner must be on a Swarm manager" && exit 1)
|
||||
- mkdir -p /mnt/data/nixc.us/woodpecker/production/db /mnt/data/nixc.us/woodpecker/production/data
|
||||
- chmod -R 777 /mnt/data/nixc.us/woodpecker/production
|
||||
- docker stack deploy --with-registry-auth -c stack.yml woodpecker
|
||||
- sleep 30
|
||||
- docker service ls | grep woodpecker
|
||||
- echo "Starting deployment in background - CI job will complete while services update"
|
||||
- (sleep 5 && docker stack deploy --with-registry-auth -c stack.yml woodpecker) &
|
||||
- sleep 3
|
||||
- echo "Deployment initiated successfully - CI job completing"
|
||||
when:
|
||||
branch: main
|
||||
event: [push]
|
Loading…
Reference in New Issue