Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput committed Oct 19, 2024
1 parent 3c723c7 commit becc89d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ jobs:
# Wait for PostGIS container to be healthy before running tests
- name: Wait for PostGIS to be ready
run: |
export POSTGRES_USER=${POSTGRES_USER:-docker}
export POSTGRES_PASS=${POSTGRES_PASS:-docker}
docker compose --env-file .example.env -p minisass -f docker-compose.yml -f docker-compose.override.yml \
exec db bash -c "until pg_isready -h localhost -U $POSTGRES_USER; do sleep 1; done"
until [ "$(docker inspect --format='{{json .State.Health.Status}}' $(docker compose ps -q db))" == "\"healthy\"" ]; do
echo "Waiting for PostGIS to be healthy..."
sleep 5
done
- name: Run Django migrate
run: make migrate
Expand Down

0 comments on commit becc89d

Please sign in to comment.