diff --git a/.woodpecker.yml b/.woodpecker.yml index 420f3aa..a05e547 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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..."