forked from planetpowershell/planetpowershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_webapp.yml
40 lines (39 loc) · 1017 Bytes
/
deploy_webapp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
parameters:
- name: connectionName
type: string
- name: webAppName
type: string
- name: cloudflareapiuser
type: string
- name: cloudflareapikey
type: string
- name: hostname
type: string
steps:
- download: current
artifact: 'planetpowershell'
- task: AzureRmWebAppDeployment@4
displayName: 'Deploy Azure App Service'
inputs:
azureSubscription: ${{ parameters.connectionName }}
WebAppName: ${{ parameters.webAppName }}
package: $(Pipeline.Workspace)/**/*.zip
- task: tfx-cloudflare-purge@1
displayName: 'Purge Cloudflare cache'
inputs:
username: $(cloudflareapiuser)
apikey: $(cloudflareapikey)
zonename: planetpowershell.com
- task: Website Warmup@2
displayName: 'Warmup website'
inputs:
Urls: ${{ parameters.hostname }}
- task: ssl-labs-test@1
displayName: 'SSL Labs Test'
inputs:
hostname: ${{ parameters.hostname }}
freshScan: true
publishScanResults: true
enableVerification: true
enableExpirationAlert: true
daysBeforeExpiration: 5