Skip to content

Commit

Permalink
fix: change secrets mount path
Browse files Browse the repository at this point in the history
  • Loading branch information
ngurenyaga committed Jul 14, 2021
1 parent 4c2edf7 commit cf4ec31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ steps:
'--max-instances', '4',
'--memory', '256M',
'--cpu', '1',
'--update-secrets', '/app/.env=mle_django_settings:latest'
'--update-secrets', '/app/envs/.env=mle_django_settings:latest'
]

images:
Expand Down
4 changes: 4 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# pepfar_mle/
APPS_DIR = ROOT_DIR / "pepfar_mle"
ENVS_DIR = ROOT_DIR / "envs"
ENV_PATH = os.path.join(ENVS_DIR, ".env")

env = environ.Env()
env.read_env(ENV_PATH)

if os.environ.get("GOOGLE_CLOUD_PROJECT", None):
project_id = os.environ.get("GOOGLE_CLOUD_PROJECT")
Expand Down
Empty file added envs/.gitkeep
Empty file.

0 comments on commit cf4ec31

Please sign in to comment.