|
|
@ -10,7 +10,7 @@ steps:
|
|
|
|
IMAGENAME: postgres:latest
|
|
|
|
IMAGENAME: postgres:latest
|
|
|
|
CONTAINERNAME: bigbrotherdb
|
|
|
|
CONTAINERNAME: bigbrotherdb
|
|
|
|
COMMAND: create
|
|
|
|
COMMAND: create
|
|
|
|
OVERWRITE: false
|
|
|
|
# OVERWRITE: false
|
|
|
|
PRIVATE: true
|
|
|
|
PRIVATE: true
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_ROOT_PASSWORD:
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_ROOT_PASSWORD:
|
|
|
|
from_secret: db_root_password
|
|
|
|
from_secret: db_root_password
|
|
|
@ -24,7 +24,6 @@ steps:
|
|
|
|
- name: create-bigbrother-database
|
|
|
|
- name: create-bigbrother-database
|
|
|
|
image: python:latest
|
|
|
|
image: python:latest
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- echo $POSTGRES_DATABASE
|
|
|
|
|
|
|
|
- cd database/
|
|
|
|
- cd database/
|
|
|
|
- pip install psycopg2
|
|
|
|
- pip install psycopg2
|
|
|
|
- python3 db-creation.py
|
|
|
|
- python3 db-creation.py
|
|
|
@ -37,5 +36,4 @@ steps:
|
|
|
|
from_secret: db_user
|
|
|
|
from_secret: db_user
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
from_secret: db_password
|
|
|
|
from_secret: db_password
|
|
|
|
secrets: [ db_root_password , db_database , db_user , db_password ]
|
|
|
|
|
|
|
|
depends_on: [ deploy-container-pgsql ]
|
|
|
|
depends_on: [ deploy-container-pgsql ]
|
|
|
|