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

master
Maxime ROCHER 3 weeks ago
parent 4ebd031064
commit baf619e25f

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