fix: correctly handle injecting environment variables to deployment tasks

Also test that release tasks are invoked the correct environment.

Closes #3817
This commit is contained in:
Jose Diaz-Gonzalez
2020-08-31 15:01:14 -04:00
parent 7e7931f1ce
commit 84367e1c16
26 changed files with 449 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
import os
environment = os.getenv('ENVIRONMENT')
if environment == 'dev':
from .dev import *
elif environment == 'staging':
from .staging import *
elif environment == 'production':
from .staging import *
else:
raise Exception("Invalid environment")