Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ trigger:

variables:
buildConfiguration: 'Release'
releaseBranchName: 'release'

stages:
- stage: 'Build'
Expand Down Expand Up @@ -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:
Expand All @@ -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'