-
Notifications
You must be signed in to change notification settings - Fork 9
/
vdc-terraform-apply-release.yml
72 lines (67 loc) · 1.77 KB
/
vdc-terraform-apply-release.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
67
68
69
70
71
72
parameters:
- name: workspace
displayName: Pipeline Environment / Terraform Workspace
type: string
default: rel
values:
- rel
- rel1
- rel2
- rel3
- name: deploy
displayName: Deploy applications
type: boolean
default: true
- name: deployIaaS
displayName: Deploy IaaS application
type: boolean
default: true
- name: destroy
displayName: Destroy infrastructure
type: string
default: Never
values:
- Never
- 'On failure'
- 'On success'
- name: testMode
displayName: Test Mode (disable most tasks)
type: boolean
default: false
trigger: none
pr: none
resources:
pipelines:
- pipeline: 'ci'
source: vdc-terraform-apply-ci
# branch: master
variables:
- template: ./templates/vdc-terraform-apply.variables.yml
# This pipeline assumes TF_VAR_* variables are defined in Variable Groups defined in Library
# The Terraform VDC project requires quite a number of settings
- group: 'vdc-release'
- name: 'TF_VAR_build_id'
value: '$(resources.pipeline.ci.runID)'
- name: 'TF_VAR_release_id'
value: '$(Build.BuildId)'
- name: 'TF_VAR_release_user_email'
value: '$(Build.RequestedForEmail)'
- name: 'TF_VAR_release_web_url'
value: '$(System.TeamFoundationCollectionUri)/$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)&view=results'
- name: 'TF_VAR_resource_suffix'
value: 'r$(Build.BuildId)'
stages:
- template: ./templates/vdc-terraform-apply.yml
parameters:
name: 'Release'
displayName: 'Release'
inherit: true
provision: true
reprovision: false
deploy: ${{ parameters.deploy }}
deployIaaS: ${{ parameters.deployIaaS }}
deploymentName: 'demo'
destroy: ${{ parameters.destroy }}
testMode: ${{ parameters.testMode }}
vdcArtifactPipeline: 'ci'
workspace: ${{ parameters.workspace }}