Add directory verification without changing node constraints

This commit is contained in:
Colin 2025-10-12 22:27:52 -04:00
parent 3fcf235f36
commit b490c0fb66
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
1 changed files with 4 additions and 0 deletions

View File

@ -26,9 +26,13 @@ steps:
- docker node ls || (echo "Runner must be on a Swarm manager" && exit 1)
- echo "Checking for existing networks..."
- docker network ls
- echo "Checking if required directories exist..."
- ls -la /mnt/data/nixc.us/woodpecker/production/ || echo "Directory doesn't exist"
- echo "Creating required directories..."
- mkdir -p /mnt/data/nixc.us/woodpecker/production/db /mnt/data/nixc.us/woodpecker/production/data || true
- chmod -R 777 /mnt/data/nixc.us/woodpecker/production || true
- echo "Verifying directories..."
- ls -la /mnt/data/nixc.us/woodpecker/production/
- echo "Ensuring traefik network exists..."
- docker network create --driver=overlay --attachable traefik || true
- echo "Removing any existing stack..."