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 = Env()
|
||||||
env.read_env()
|
env.read_env()
|
||||||
class AzureMediaStorage(AzureStorage):
|
class AzureMediaStorage(AzureStorage):
|
||||||
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
if env("IT_USE_AZURE_BLOB_STORAGE", False):
|
||||||
account_key = env("IT_AZURE_STORAGE_KEY")
|
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
||||||
azure_container = 'media'
|
account_key = env("IT_AZURE_STORAGE_KEY")
|
||||||
expiration_secs = None
|
azure_container = 'media'
|
||||||
|
expiration_secs = None
|
||||||
|
|
||||||
class AzureStaticStorage(AzureStorage):
|
class AzureStaticStorage(AzureStorage):
|
||||||
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
if env("IT_USE_AZURE_BLOB_STORAGE", False):
|
||||||
account_key = env("IT_AZURE_STORAGE_KEY")
|
account_name = env("IT_AZURE_STORAGE_ACCOUNT")
|
||||||
azure_container = 'static'
|
account_key = env("IT_AZURE_STORAGE_KEY")
|
||||||
expiration_secs = None
|
azure_container = 'static'
|
||||||
|
expiration_secs = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue