diff --git a/.github/workflows/quick-start.yml b/.github/workflows/quick-start.yml index cb46f256..a5e3ff21 100644 --- a/.github/workflows/quick-start.yml +++ b/.github/workflows/quick-start.yml @@ -9,7 +9,14 @@ 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 -d --no-build || docker compose run web-init ls /app/setup_configuration + - 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 - name: Load fixtures run: docker compose exec -T web src/manage.py loaddata demodata - name: Create superuser