mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-27 09:45:12 +00:00
allow getting the GIT SSH key from an app config so we can set it in the secrets file w/ burnettk
This commit is contained in:
parent
d8cf4b1287
commit
79958d4ae5
@ -84,6 +84,8 @@ class GitService:
|
|||||||
repo_path_to_use = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"]
|
repo_path_to_use = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"]
|
||||||
if repo_path_to_use is None:
|
if repo_path_to_use is None:
|
||||||
raise ConfigurationError("BPMN_SPEC_ABSOLUTE_DIR config must be set")
|
raise ConfigurationError("BPMN_SPEC_ABSOLUTE_DIR config must be set")
|
||||||
|
if current_app.config['GIT_SSH_PRIVATE_KEY']:
|
||||||
|
os.environ['GIT_SSH_PRIVATE_KEY'] = current_app.config['GIT_SSH_PRIVATE_KEY']
|
||||||
|
|
||||||
git_username = ""
|
git_username = ""
|
||||||
git_email = ""
|
git_email = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user