Add azure deployment to pipelines
This commit is contained in:
parent
705a146c93
commit
89716db561
|
|
@ -5,14 +5,16 @@ from environs import Env
|
|||
env = Env()
|
||||
env.read_env()
|
||||
class AzureMediaStorage(AzureStorage):
|
||||
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
||||
account_key = env("IT_AZURE_STORAGE_KEY")
|
||||
azure_container = 'media'
|
||||
expiration_secs = None
|
||||
if env("IT_USE_AZURE_BLOB_STORAGE", False):
|
||||
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
||||
account_key = env("IT_AZURE_STORAGE_KEY")
|
||||
azure_container = 'media'
|
||||
expiration_secs = None
|
||||
|
||||
class AzureStaticStorage(AzureStorage):
|
||||
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
||||
account_key = env("IT_AZURE_STORAGE_KEY")
|
||||
azure_container = 'static'
|
||||
expiration_secs = None
|
||||
if env("IT_USE_AZURE_BLOB_STORAGE", False):
|
||||
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
||||
account_key = env("IT_AZURE_STORAGE_KEY")
|
||||
azure_container = 'static'
|
||||
expiration_secs = None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue