-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.destroy.yaml
44 lines (39 loc) · 1.06 KB
/
azure-pipelines.destroy.yaml
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
resources:
repositories:
- repository: templates
type: github
name: hmcts/azure-devops-templates
ref: master
endpoint: hmcts
trigger: none
pr: none
pool:
vmImage: 'ubuntu-latest'
parameters:
- name: environment
type: string
values:
- 'ITHC'
- 'Test'
- 'Demo'
variables:
- name: tfVersion
value: 1.6.6
- name: azureLocation
value: 'UK South'
- group: external
################################################
# Terraform Plan & Destroy. ####################
stages:
- template: pipeline-steps/terraform-plan-apply.yaml
parameters:
terraformVersion: ${{ variables.tfVersion }}
env: ${{ parameters.environment }}
location: ${{ variables.azureLocation }}
environmentServiceConnection: DTS-SHAREDSERVICES-${{ parameters.environment }}-Video Hearings
product: vh
activityName: Video_Hearing_Core
tfStateResourceGroup: vh-infra-core-${{ parameters.environment }}-tf
tfStateStorageAccountName: vhinfracore${{ parameters.environment }}tf
dependsonEnv: '[]'
destroyInfra: true