fix(workflow): replace fixed wait for directus to be actually ready in seeding workflow (#589)

This commit is contained in:
mahula 2025-11-24 11:10:32 +01:00 committed by GitHub
parent b44b479932
commit 0c0f89710f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,8 @@ jobs:
mkdir -p ./data/uploads
sudo chmod 777 -R ./data
docker compose -f docker-compose.yml up -d
sleep 5
# Wait for Directus to be ready using health endpoint polling
timeout 120 bash -c 'until curl -f http://localhost:8055/server/health; do echo "Waiting for Directus..."; sleep 5; done'
cd backend && ./push.sh && ./seed.sh
working-directory: ${{env.WORKING_DIRECTORY}}