Skip to content

Commit

Permalink
Update web-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dejonghee authored Jul 16, 2021
1 parent b1e4de2 commit 16262f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions azure/pipelines/deploy/web-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ parameters:
type: string
displayName: "Optional label to prefix steps in pipeline."
default:
- name: stagingSlotValidationSteps
- name: postStagingSteps
type: stepList
default: []
displayName: "Optional steps to execute after staging slot deploy, before swapping slots (e.g. smoke testing)."
- name: productionSlotValidationSteps
- name: postDeploySteps
type: stepList
default: []
displayName: "Optional steps to execute after production slot deploy, before cleaning up the old slot (when applicable)."
Expand Down Expand Up @@ -72,11 +72,11 @@ steps:
condition: and(succeeded(), ne(variables['skipWebApp'], 'true'))

- ${{ if and(parameters.webAppSlot, eq(parameters.webAppSlot, 'production')) }}:
- ${{ each step in parameters.productionSlotValidationSteps }}:
- ${{ each step in parameters.postDeploySteps }}:
- ${{ step }}

- ${{ if and(parameters.webAppSlot, ne(parameters.webAppSlot, 'production')) }}:
- ${{ each step in parameters.stagingSlotValidationSteps }}:
- ${{ each step in parameters.postStagingSteps }}:
- ${{ step }}

- task: AzureAppServiceManage@0
Expand All @@ -89,7 +89,7 @@ steps:
SourceSlot: ${{ parameters.webAppSlot }}
condition: and(succeeded(), ne(variables['skipWebApp'], 'true'), ne(variables['${{ parameters.variablePrefix }}${{ parameters.module }}WebAppSlot'], 'production'))

- ${{ each step in parameters.productionSlotValidationSteps }}:
- ${{ each step in parameters.postDeploySteps }}:
- ${{ step }}

- task: AzureAppServiceManage@0
Expand Down

0 comments on commit 16262f1

Please sign in to comment.