Jenkinsfile: use pg_virtualenv to isolate the postgres database (#74887)
gitea/zoo/pipeline/head This commit looks good
Details
gitea/zoo/pipeline/head This commit looks good
Details
parent
0440e461be
commit
9bdd837ecd
@ -0,0 +1,8 @@
|
||||
import os
|
||||
|
||||
from zoo.settings import *
|
||||
|
||||
# integrate with pg_virtualenv by getting pg configuration from environment variables
|
||||
for key in ('PGPORT', 'PGHOST', 'PGUSER', 'PGPASSWORD'):
|
||||
if key in os.environ:
|
||||
DATABASES['default'][key[2:]] = os.environ[key]
|
Loading…
Reference in New Issue