Skip to content

Commit

Permalink
Tweak azure pipelines for prod/staging builds and deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
voneiden committed Aug 8, 2023
1 parent 5795309 commit 6c8e8fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion azure-pipelines-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ trigger:
include:
- develop
- refs/tags/staging-*
- refs/tags/release-*
# other examples:
#- release/*
#- refs/tags/*
Expand Down Expand Up @@ -48,7 +49,9 @@ extends:
#parameters:
#imagetag: ${{ parameters.imagetag }}
parameters:
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/staging-') }}:
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/release-') }}:
buildenv: -prod
${{ elseif startsWith(variables['Build.SourceBranch'], 'refs/tags/staging-') }}:
buildenv: -staging
${{ else }}:
buildenv: -dev
1 change: 0 additions & 1 deletion azure-pipelines-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ parameters:
default: "-prod"
values:
- "-prod"
- "-dev"


# Image tag name for Fuse projects
Expand Down
3 changes: 2 additions & 1 deletion azure-pipelines-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ parameters:
- name: buildenv
displayName: Build environment
type: string
default: "-prod"
default: "-staging"
values:
- "-prod"
- "-staging"
- "-dev"


Expand Down

0 comments on commit 6c8e8fd

Please sign in to comment.