diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a1cd67607..94cc8e3ff 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,6 +3,7 @@ trigger: variables: buildConfiguration: 'Release' + releaseBranchName: 'release' stages: - stage: 'Build' @@ -65,9 +66,15 @@ stages: - publish: '$(Build.ArtifactStagingDirectory)' artifact: drop -- stage: 'Deploy' - displayName: 'Deploy the web application' +- stage: 'Dev' + displayName: 'Deploy to the dev environment' dependsOn: Build + condition: | + and + ( + succeeded(), + eq(variables['Build.SourceBranchName'], variables['releaseBranchName']) + ) jobs: - deployment: Deploy pool: @@ -85,5 +92,5 @@ stages: displayName: 'Azure App Service Deploy: website' inputs: azureSubscription: 'Resource Manager - Tailspin - Space Game' - appName: '$(WebAppName)' - package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip' + appName: '$(WebAppNameDev)' + package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip' \ No newline at end of file