Run deployment in background to avoid hanging CI jobs
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Colin 2025-10-10 16:23:51 -04:00
parent b622765af3
commit 7605702fc1
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
1 changed files with 4 additions and 3 deletions

View File

@ -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]