From 6d9b3c52761da60eff5dd0a3d29a7e604311ce1a Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 9 Dec 2022 17:28:57 -0500 Subject: [PATCH] update staging configs to allow env var overrides w/ burnettk --- .../src/spiffworkflow_backend/config/staging.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/config/staging.py b/spiffworkflow-backend/src/spiffworkflow_backend/config/staging.py index bd834cb7..51735e4e 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/config/staging.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/config/staging.py @@ -1,4 +1,6 @@ """staging.""" -GIT_BRANCH = "staging" -GIT_BRANCH_TO_PUBLISH_TO = "main" +from os import environ + +GIT_BRANCH = environ.get("GIT_BRANCH_TO_PUBLISH_TO", default="staging") +GIT_BRANCH_TO_PUBLISH_TO = environ.get("GIT_BRANCH_TO_PUBLISH_TO", default="main") GIT_COMMIT_ON_SAVE = False