Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Brett Hewitson 2022-12-21 18:56:59 +10:00
parent 9ec961ad2d
commit fffd5c4932

View file

@ -24,7 +24,7 @@ variables:
stages:
- stage: build
displayName: Build and Publish
displayName: Build and Publish $(ApplicationName)
jobs:
- job: build
@ -91,3 +91,27 @@ stages:
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '$(PublishFolder)'
- stage: deployBeta
displayName: Deploy Beta $(ApplicationName)
lockBehavior: runLatest
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/source'))
dependsOn:
- build
jobs:
- deployment: deployBeta
displayName: Deploy Beta
environment: github-servermanager-beta
- stage: deployRelease
displayName: Deploy Release $(ApplicationName)
lockBehavior: runLatest
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/source'))
dependsOn:
- deployBeta
jobs:
- deployment: deployRelease
displayName: Deploy Release
environment: github-servermanager-release