This repository was archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
67 lines (58 loc) · 1.34 KB
/
azure-pipelines.yml
File metadata and controls
67 lines (58 loc) · 1.34 KB
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
name: $(Date:yyyyMMdd)$(Rev:.r)
variables:
- group: terraform_variables
trigger:
- develop
pr:
- develop
- master
resources:
containers:
- container: terraform
image: brettkuhlman/terraform:latest
stages:
- stage: Terraform_Fmt
displayName: Check Terraform Format
jobs:
- job: Format_Terraform
pool:
vmImage: 'ubuntu-16.04'
container: terraform
steps:
- script: terraform fmt -recursive -check -list=true
- stage: Terraform_Validate
displayName: Validate Terraform Syntax
jobs:
- job: Validate_Terraform
pool:
vmImage: 'ubuntu-16.04'
container: terraform
steps:
- task: Bash@3
inputs:
filePath: './bin/validate_terraform.sh'
dependsOn: Terraform_Fmt
- stage: Terraform_Apply
displayName: Run Terraform apply for solutions
jobs:
- job: Apply_Terraform
pool:
vmImage: 'ubuntu-16.04'
container: terraform
steps:
- task: Bash@3
inputs:
filePath: './bin/plan-apply.sh'
dependsOn: Terraform_Validate
- stage: Terraform_Destroy
displayName: Run Terraform destroy for solutions
jobs:
- job: Destroy_Terraform
pool:
vmImage: 'ubuntu-16.04'
container: terraform
steps:
- task: Bash@3
inputs:
filePath: './bin/destroy.sh'
dependsOn: Terraform_Apply