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

master
Maxime ROCHER 3 months ago
parent baf619e25f
commit cf9f1e151f

@ -16,17 +16,17 @@ steps:
- name: verify-postgres - name: verify-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
commands: commands:
- echo "Vérification de la connexion à PostgreSQL" - echo "Vérification de la connexion à PostgreSQL"
- echo "POSTGRES_USER=myuser" - echo "POSTGRES_USER=postgres"
- echo "POSTGRES_DB=mydatabase" - echo "POSTGRES_DB=wikifantasy3"
- | - |
until pg_isready -h postgres -p 5432 -U "myuser"; do until pg_isready -h postgres -p 5432 -U postgres -d wikifantasy3; 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 -h postgres -U "myuser" -d "mydatabase" -c '\l' - psql -d wikifantasy3 postgres
Loading…
Cancel
Save