6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit d82c487a
Changed files
azure/azure-pipelines.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Diff
diff --git a/azure/azure-pipelines.yml b/azure/azure-pipelines.yml
index c96f4c74..3a996276 100644
--- a/azure/azure-pipelines.yml
+++ b/azure/azure-pipelines.yml
@@ -1,7 +1,10 @@
variables:
- name: environment
+ value: ''
- name: stageName
+ value: ''
- name: flavor
+ value: ''
trigger:
branches:
@@ -45,10 +48,10 @@ stages:
- stage:
- condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/test'), eq(variables['Build.SourceBranch'], 'refs/heads/stage'), eq(variables['Build.SourceBranch'], 'refs/heads/main') )
+ condition: and(succeeded(), or(eq(variables['Build.SourceBranch'], 'refs/heads/test'), eq(variables['Build.SourceBranch'], 'refs/heads/stage'), eq(variables['Build.SourceBranch'], 'refs/heads/prod')))
jobs:
- deployment:
- environment: ${{ variables.flavor }}
+ environment: ${{ variables.environment }}
strategy:
runOnce:
deploy: