Skip to content

Commit

Permalink
Merge pull request #207 from SkillsFundingAgency/DASD-8987-webjob-dep…
Browse files Browse the repository at this point in the history
…loy-template

Add webjob deploy template +semver: minor
  • Loading branch information
EwanNoble authored Sep 20, 2021
2 parents f541b4d + 74ba5aa commit 80c2580
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions azure-pipelines-templates/deploy/step/webjob-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
parameters:
ServiceConnection: ''
AppServiceName: ''
DeploymentPackagePath: ''
VirtualApplication: ''

steps:

- task: AzureAppServiceManage@0
displayName: 'Stop all continuous webjobs - ${{ parameters.AppServiceName }}'
inputs:
azureSubscription: ${{ parameters.ServiceConnection }}
Action: 'Stop all continuous webjobs'
WebAppName: ${{ parameters.AppServiceName }}

- task: AzureRmWebAppDeployment@4
displayName: 'Azure App Service Deploy: $(AppServiceName)'
inputs:
azureSubscription: ${{ parameters.ServiceConnection }}
WebAppName: ${{ parameters.AppServiceName }}
Package: ${{ parameters.DeploymentPackagePath }}
${{ if ne(parameters.VirtualApplication, '') }}:
VirtualApplication: ${{ parameters.VirtualApplication }}

- task: AzureAppServiceManage@0
displayName: 'Start all continuous webjobs - ${{ parameters.AppServiceName }}'
inputs:
azureSubscription: ${{ parameters.ServiceConnection }}
Action: 'Start all continuous webjobs'
WebAppName: ${{ parameters.AppServiceName }}

0 comments on commit 80c2580

Please sign in to comment.