Automatically define variables in databricks lib cd
This commit is contained in:
Родитель
5628cbfb98
Коммит
e43140acde
|
@ -4,9 +4,12 @@ variables:
|
|||
${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
|
||||
environmentName: prod
|
||||
azureServiceConnection: spn-iac-prod
|
||||
branch: 'refs/heads/main'
|
||||
${{ if eq(variables['Build.SourceBranchName'], 'qa') }}:
|
||||
environmentName: qa
|
||||
azureServiceConnection: spn-iac-qa
|
||||
branch: 'refs/heads/qa'
|
||||
${{ if and(ne(variables['Build.SourceBranchName'], 'main'), ne(variables['Build.SourceBranchName'], 'qa')) }}:
|
||||
environmentName: dev
|
||||
azureServiceConnection: spn-iac-dev
|
||||
branch: 'refs/heads/develop'
|
||||
|
|
Загрузка…
Ссылка в новой задаче