Skip to content
12 changes: 12 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,17 @@ stages:
displayName: 'Azure App Service Deploy: website'
inputs:
azureSubscription: 'Resource Manager - Tailspin - Space Game'
deployToSlotOrASE: 'true'
resourceGroupName: 'tailspin-space-game-rg'
slotName: 'swap'
appName: '$(WebAppNameStaging)'
package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip'
- task: AzureAppServiceManage@0
displayName: 'Swap deployment slots'
inputs:
azureSubscription: 'Resource Manager - Tailspin - Space Game'
resourceGroupName: 'tailspin-space-game-rg'
webAppName: '$(WebAppNameStaging)'
sourceSlot: 'swap'
targetSlot: 'production'
action: 'Swap Slots'