Skip to content

Commit

Permalink
WIP - Troubleshoot DB connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasgarciaisaia committed Mar 6, 2024
1 parent 9e1c9dc commit 94b7503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
run: |
docker compose up --wait db
PGPASSWORD="${POSTGRES_PASSWORD}" psql --host db --username planwise --list || true
sleep 20
timeout 60s sh -c "while ! nc -z $(docker inspect planwise-db-1 | jq -r '.[0].NetworkSettings.Networks.planwise_default.IPAddress') 3306; do sleep 1; done" || true
docker inspect planwise-db-1
PGPASSWORD="${POSTGRES_PASSWORD}" psql --host db --username planwise --list || true
exit 1
Expand Down

0 comments on commit 94b7503

Please sign in to comment.