Skip to content

Commit

Permalink
Mijn 7136 add az condition (#106)
Browse files Browse the repository at this point in the history
* Maintenance run 2023-12-16

* MIJN-7136-add-az-condition

* MIJN-7450-production-release-config

---------

Co-authored-by: timvanoostrom <[email protected]>
  • Loading branch information
timvanoostrom and timvanoostrom authored Jan 19, 2024
1 parent 5153b77 commit e99e2db
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ trigger:
- testen
- az-acceptance
- main
- production-release-v*
pr:
autoCancel: true
branches:
Expand Down Expand Up @@ -41,6 +42,13 @@ parameters:
default: false

variables:
- name: btdBuild
value: ${{ parameters.btdBuild }}
- name: btdTest
value: ${{ parameters.btdTest }}
- name: btdDeploy
value: ${{ parameters.btdDeploy }}

- ${{ if or(eq(variables['Build.SourceBranchName'], 'testen'), eq(variables['Build.Reason'], 'PullRequest')) }}:
- name: dtapName
value: t
Expand All @@ -57,13 +65,23 @@ variables:
- name: dtapName
value: ${{ parameters.dtapName }}

- ${{ if contains(variables['Build.SourceBranchName'], 'production-release') }}:
- name: dtapName
value: p
- name: btdBuild
value: true
- name: btdTest
value: true
- name: btdDeploy
value: true

jobs:
- template: pipelines/jobs/apps/btd-koppel-api.yaml@MamsInfra
parameters:
appServiceShortName: mks
dtapName: ${{ variables.dtapName }}
btdBuild: ${{ parameters.btdBuild }}
btdTest: ${{ parameters.btdTest }}
btdBuild: ${{ variables.btdBuild }}
btdTest: ${{ variables.btdTest }}
btdDeploy: ${{ variables.btdDeploy }}
updateAppSettings: ${{ parameters.updateAppSettings }}
aquaScan: ${{ eq(variables['Build.Reason'], 'PullRequest') }}

0 comments on commit e99e2db

Please sign in to comment.