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)
|
- 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
|
- 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
|
- chmod -R 777 /mnt/data/nixc.us/woodpecker/production
|
||||||
- docker stack deploy --with-registry-auth -c stack.yml woodpecker
|
- echo "Starting deployment in background - CI job will complete while services update"
|
||||||
- sleep 30
|
- (sleep 5 && docker stack deploy --with-registry-auth -c stack.yml woodpecker) &
|
||||||
- docker service ls | grep woodpecker
|
- sleep 3
|
||||||
|
- echo "Deployment initiated successfully - CI job completing"
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
event: [push]
|
event: [push]
|
||||||
Loading…
Reference in New Issue