Skip to content

Commit

Permalink
Web app simple: add-deployToSlot-parameter (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjohanning authored Jul 30, 2023
1 parent 1b9314e commit 97cfd4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dotnet-core-web/dotnet-core-deploy-simple-web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ parameters:
websiteName: 'app-tailspin-DEV'
resourceGroupName: 'rg-tailspin-terraform-DEV'
slotName: 'swap'
deployToSlot: false

jobs:

Expand Down Expand Up @@ -50,14 +51,15 @@ jobs:
azureSubscription: '${{ parameters.azureSubscription }}'
appType: 'webApp' # could make this a parameter if 'webAppLinux' was ever needed to be used
WebAppName: '${{ parameters.websiteName }}'
deployToSlotOrASE: true
deployToSlotOrASE: ${{ parameters.deployToSlot }}
ResourceGroupName: '${{ parameters.resourceGroupName }}'
SlotName: '${{ parameters.slotName }}'
packageForLinux: '$(Pipeline.Workspace)/${{ parameters.name }}/deploy'
AppSettings: '${{ parameters.appSettingsEdits }}'
JSONFiles: '${{ parameters.jsonVariableSubstituion }}'

- task: AzureAppServiceManage@0
condition: and(succeeded(), eq('${{ parameters.deployToSlot }}', true))
inputs:
azureSubscription: '${{ parameters.azureSubscription }}'
Action: 'Swap Slots'
Expand Down

0 comments on commit 97cfd4d

Please sign in to comment.