test drone 5
continuous-integration/drone/push Build encountered an error Details

master
Maxime ROCHER 3 months ago
parent 42b02222c3
commit 1ee499c8c9

@ -27,9 +27,7 @@ steps:
PGDATABASE: PGDATABASE:
from_secret: db_database from_secret: db_database
commands: commands:
# Installer le client PostgreSQL - apt-get update && apt-get install -y postgresql-client
- apk update && apk add postgresql-client - until pg_isready -h dbWikiFantasy -U "$PGUSER"; do sleep 1; done
# Attendre que PostgreSQL soit prêt - psql -h dbWikiFantasy -U "$PGUSER" -d "$PGDATABASE" -f script/init.sql
- until pg_isready -h dbWikiFantasy -U postgres; do sleep 1; done
# Exécuter le script d'initialisation
- psql -h dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql

Loading…
Cancel
Save