test drone 10
continuous-integration/drone/push Build is failing Details

master
Maxime ROCHER 1 month ago
parent c926103500
commit bd40699067

@ -27,6 +27,8 @@ steps:
PGDATABASE: PGDATABASE:
from_secret: db_database from_secret: db_database
commands: commands:
- apt-get update && apt-get install -y postgresql-client - apt-get update && apt-get install -y postgresql-client netcat
- until pg_isready -h marocher8-dbWikiFantasy -U postgres; do sleep 1; done - getent hosts dbwikifantasy
- psql -h marocher8-dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql - until nc -z dbwikifantasy 5432; do echo "Waiting for port 5432..."; sleep 5; done
- until pg_isready -h dbwikifantasy -U postgres; do echo "En attente de PostgreSQL..."; sleep 5; done
- psql -h dbwikifantasy -U postgres -d wikifantasy -f script/init.sql

Loading…
Cancel
Save