Add azure deployment to pipelines

This commit is contained in:
Lorenz Padberg 2023-05-23 17:40:05 +02:00 committed by Daniel Egger
parent 705a146c93
commit 89716db561
1 changed files with 10 additions and 8 deletions

View File

@ -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