test drone 8
continuous-integration/drone/push Build was killed Details

master
Maxime ROCHER 2 months ago
parent 061a6134e2
commit da3669f829

@ -17,17 +17,16 @@ steps:
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
from_secret: db_database from_secret: db_database
- name: init-database - name: init-database
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
PGPASSWORD: PGPASSWORD:
from_secret: db_password from_secret: db_password
PGUSER: PGUSER:
from_secret: db_user from_secret: db_user
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
- until pg_isready -h dbWikiFantasy -U "$PGUSER"; do sleep 1; done - until pg_isready -h dbWikiFantasy -U postgres; do sleep 1; done
- psql -h dbWikiFantasy -U "$PGUSER" -d "$PGDATABASE" -f script/init.sql - psql -h dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql

Loading…
Cancel
Save