Commit d55f00e7 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

put PGPASSWORD in variables

parent 54f32d1a
......@@ -76,10 +76,10 @@ connect:
image: postgres:10.15
needs: ["db-ready"]
variables:
GIT_STRATEGY: none # important to not checkout source when branch is deleted
GIT_STRATEGY: none
PGPASSWORD: $POSTGRES_PASSWORD
script:
# official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
- export PGPASSWORD=$POSTGRES_PASSWORD
- psql -h "${POSTGRES_HOST}" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
......@@ -88,10 +88,10 @@ connectp:
image: postgres:10.15
needs: []
variables:
GIT_STRATEGY: none # important to not checkout source when branch is deleted
GIT_STRATEGY: none
PGPASSWORD: $POSTGRES_PASSWORD
script:
# official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
- export PGPASSWORD=$POSTGRES_PASSWORD
- psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment