We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f169fd6 commit 6dd50b0Copy full SHA for 6dd50b0
.github/workflows/build.yml
@@ -68,7 +68,6 @@ jobs:
68
docker-images: true
69
large-packages: true
70
swap-storage: true
71
- apt: true
72
73
- uses: actions/checkout@v3
74
- name: Set up Python
@@ -87,6 +86,15 @@ jobs:
87
86
python -m venv venv
88
. venv/bin/activate
89
pip install --cache-dir ~/.cache/pip -r requirements.txt
+ - name: Wait for Postgres
90
+ run: |
91
+ echo "Waiting for Postgres..."
92
+ for i in {1..30}; do
93
+ pg_isready -h db -p 5432 -U postgres && echo "Postgres ready!" && exit 0
94
+ echo "Still waiting..."
95
+ sleep 2
96
+ done
97
+ echo "Postgres did not start!" && exit 1
98
- name: Wait for Elasticsearch HTTP
99
run: |
100
echo "Waiting for Elasticsearch..."
0 commit comments