Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
d55f00e7
Commit
d55f00e7
authored
Mar 08, 2021
by
Bryan BRANCOTTE
Browse files
put PGPASSWORD in variables
parent
54f32d1a
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d55f00e7
...
...
@@ -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;"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment