Wait for the database

This commit is contained in:
Alexander Hess 2026-11-27 13:26:43 +01:00
commit a8c0e17bed
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -26,6 +26,12 @@ jobs:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
# Start the steps only once the database accepts connections
options: >-
--health-cmd "pg_isready --username=user --dbname=db"
--health-interval 2s
--health-timeout 5s
--health-retries 15
# Same variables as in `.env` on `nehemiah`, the main development machine
env: