-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_and_test.yml
49 lines (48 loc) · 1.2 KB
/
deploy_and_test.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
41
42
43
44
45
46
47
48
49
parameters:
- name: environmentName
type: string
- name: webAppName
type: string
- name: azureSubscription
type: string
- name: packageFolderPath
type: string
- name: url
type: string
- name: browser
type: string
jobs:
- deployment: Deploy
displayName: 'Deploy'
environment: ${{ parameters.environmentName }}
pool:
vmImage: 'ubuntu-latest'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'drop'
downloadPath: '$(System.ArtifactsDirectory)'
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: ${{ parameters.azureSubscription }}
appType: 'webAppLinux'
WebAppName: ${{ parameters.webAppName }}
packageForLinux: '$(System.ArtifactsDirectory)/**/*.zip'
- job: Test
dependsOn: Deploy
displayName: 'Test'
pool:
vmImage: 'ubuntu-latest'
steps:
- script: echo "Running tests"
- template: steps_test.yml
parameters:
url: ${{ parameters.url }}
browser: ${{ parameters.browser }}