diff --git a/.drone.yml b/.drone.yml index af54ac3c..26a11a96 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,6 +22,8 @@ steps: commands: - apk add --no-cache bash - chmod +x ./bin/update + - docker-compose up -d + - until docker inspect -f '{{.State.Running}}' web | grep true; do echo "Waiting for container to be running..."; sleep 5; done - git branch --set-upstream-to=origin/PMSManager_refactor PMSManager_refactor || true - ./bin/update @@ -37,7 +39,7 @@ steps: - web commands: - apk add --no-cache bash - - until nc -z 127.0.0.1 8000; do echo "Waiting for web to be ready..."; sleep 5; done + - until docker inspect -f '{{.State.Running}}' web | grep true; do echo "Waiting for container to be running..."; sleep 5; done - chmod +x ./bin/cli - ./bin/cli migrate @@ -46,6 +48,8 @@ steps: image: python:3.12-alpine environment: MYSQL_PASSWORD: touchh + depends_on: + - db commands: - apk add --no-cache mariadb-client mariadb-connector-c-dev gcc musl-dev pkgconfig - pip install -r requirements.txt @@ -97,7 +101,6 @@ volumes: - name: docker_sock host: path: /var/run/docker.sock - - name: mysql_data temp: {}