Automatically define variables in databricks lib cd

This commit is contained in:
Ana Lopez 2021-07-07 16:03:32 +00:00
Родитель 59528311fd
Коммит 5628cbfb98
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -7,9 +7,12 @@ variables:
${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
environment: prod
azureServiceConnection: spn-iac-prod
branch: 'refs/heads/main'
${{ if eq(variables['Build.SourceBranchName'], 'qa') }}:
environment: qa
azureServiceConnection: spn-iac-qa
branch: 'refs/heads/qa'
${{ if and(ne(variables['Build.SourceBranchName'], 'main'), ne(variables['Build.SourceBranchName'], 'qa')) }}:
environment: dev
azureServiceConnection: spn-iac-dev
branch: 'refs/heads/develop'