Skip to content

Commit 6c8e8fd

Browse files
committed
Tweak azure pipelines for prod/staging builds and deployments
1 parent 5795309 commit 6c8e8fd

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

azure-pipelines-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ trigger:
66
include:
77
- develop
88
- refs/tags/staging-*
9+
- refs/tags/release-*
910
# other examples:
1011
#- release/*
1112
#- refs/tags/*
@@ -48,7 +49,9 @@ extends:
4849
#parameters:
4950
#imagetag: ${{ parameters.imagetag }}
5051
parameters:
51-
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/staging-') }}:
52+
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/release-') }}:
53+
buildenv: -prod
54+
${{ elseif startsWith(variables['Build.SourceBranch'], 'refs/tags/staging-') }}:
5255
buildenv: -staging
5356
${{ else }}:
5457
buildenv: -dev

azure-pipelines-prod.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ parameters:
3030
default: "-prod"
3131
values:
3232
- "-prod"
33-
- "-dev"
3433

3534

3635
# Image tag name for Fuse projects

azure-pipelines-stage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ parameters:
66
- name: buildenv
77
displayName: Build environment
88
type: string
9-
default: "-prod"
9+
default: "-staging"
1010
values:
1111
- "-prod"
12+
- "-staging"
1213
- "-dev"
1314

1415

0 commit comments

Comments
 (0)