test deploiement 8
continuous-integration/drone/push Build is failing Details

master
Maxime ROCHER 3 months ago
parent cf9f1e151f
commit 6892abc481

@ -6,9 +6,9 @@ services:
- name: postgres - name: postgres
image: postgres:15 image: postgres:15
environment: environment:
POSTGRES_DB: mydatabase POSTGRES_DB: wikifantasy3
POSTGRES_USER: myuser POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword POSTGRES_PASSWORD: wikifantasy3
ports: ports:
- 5432 - 5432
@ -24,9 +24,9 @@ steps:
- echo "POSTGRES_USER=postgres" - echo "POSTGRES_USER=postgres"
- echo "POSTGRES_DB=wikifantasy3" - echo "POSTGRES_DB=wikifantasy3"
- | - |
until pg_isready -h postgres -p 5432 -U postgres -d wikifantasy3; do until pg_isready -h postgres -p 5432 -U postgres; do
echo "PostgreSQL n'est pas encore prêt, nouvelle tentative dans 2s..." echo "PostgreSQL n'est pas encore prêt, nouvelle tentative dans 2s..."
sleep 2 sleep 2
done done
- echo "PostgreSQL est prêt !" - echo "PostgreSQL est prêt !"
- psql -d wikifantasy3 postgres - psql -h postgres -U postgres -d wikifantasy3 -c '\l'

Loading…
Cancel
Save