-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsaas-deployment.yml
66 lines (62 loc) · 1.9 KB
/
saas-deployment.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
trigger: none
resources:
pipelines:
- pipeline: dcat-server-main-master
source: dcat-server-main
trigger:
branches:
include:
- master
- pipeline: dcat-server-main-tag
source: dcat-server-main
trigger:
stages :
- versions_update
variables :
tagRunId : $(resources.pipeline.dcat-server-main-tag.runID)
masterRunId : $(resources.pipeline.dcat-server-main-master.runID)
stages :
- stage : deploy_to_qa
condition: contains(variables['Resources.TriggeringAlias'], 'master')
jobs :
- job : deploy_job
steps:
- checkout : none
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
runVersion : 'specific'
buildId : $(masterRunId)
project: 'dcat-server'
definition: '143'
artifactName: 'drop'
targetPath: '$(Pipeline.Workspace)'
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'Isogeo - MPN(82885610-5841-4749-8d71-46f56b643ad2)'
appType: 'webApp'
WebAppName: 'qa-dcat-server'
packageForLinux: '$(Pipeline.Workspace)/*.zip'
- stage : deploy_to_prod
condition: contains(variables['Resources.TriggeringAlias'], 'tag')
jobs :
- job : deploy_job
steps:
- checkout : none
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
runVersion : 'specific'
buildId : $(tagRunId)
project: 'dcat-server'
definition: '143'
artifactName: 'drop'
targetPath: '$(Pipeline.Workspace)'
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'Isogeo - MPN(82885610-5841-4749-8d71-46f56b643ad2)'
appType: 'webApp'
WebAppName: 'dcat-server'
packageForLinux: '$(Pipeline.Workspace)/*.zip'