diff --git a/.github/workflows/quick-start.yml b/.github/workflows/quick-start.yml index cb46f256..1737fe64 100644 --- a/.github/workflows/quick-start.yml +++ b/.github/workflows/quick-start.yml @@ -9,7 +9,15 @@ jobs: - name: Download docker-compose file run: wget https://raw.githubusercontent.com/maykinmedia/objects-api/master/docker-compose.yml - name: Start docker containers - run: docker compose up -d --no-build + run: docker compose up db redis web-init -d --no-build + - name: Wait for migrations to finish + run: | + echo "Waiting for migrations to complete..." + until ! docker compose exec -T web src/manage.py showmigrations | grep -q '\[ \]'; do + echo "Migrations not finished, waiting..." + sleep 3 + done + docker compose logs web-init - name: Load fixtures run: docker compose exec -T web src/manage.py loaddata demodata - name: Create superuser