Add directory verification without changing node constraints
This commit is contained in:
parent
3fcf235f36
commit
b490c0fb66
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue