diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dfd41b0b5..ba5a8198e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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' \ No newline at end of file