-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines-terraform-function.yml
42 lines (37 loc) · 1.18 KB
/
azure-pipelines-terraform-function.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
# Starter pipeline
trigger:
branches:
include:
- master
paths:
include:
- infrastructure
pool:
name: 'ocp4-ngrp6'
variables:
- group: terraform-commons
stages:
- template: infrastructure/terraform-function-stages-template.yml
parameters:
environment: dev
environmentDisplayName: DEV
TerraformArguments: >-
-var department=DevOps
# For additional security, pass secret through environment instead of command line.
# Terraform recognizes TF_VAR prefixed environment variables.
TerraformEnvVariables:
webinar_VARIABLE_GROUP_ID: $(webinar-dev_VARIABLE_GROUP_ID)
TF_VAR_ARM_CLIENT_ID: $(ARM_CLIENT_ID)
TF_VAR_ARM_CLIENT_SECRET: $(ARM_CLIENT_SECRET)
buildConfiguration: $(buildConfiguration)
- template: infrastructure/terraform-function-stages-template.yml
parameters:
environment: prod
environmentDisplayName: PROD
TerraformArguments: >-
-var department=Marketing
TerraformEnvVariables:
webinar_VARIABLE_GROUP_ID: $(webinar-prod_VARIABLE_GROUP_ID)
TF_VAR_ARM_CLIENT_ID: $(ARM_CLIENT_ID)
TF_VAR_ARM_CLIENT_SECRET: $(ARM_CLIENT_SECRET)
buildConfiguration: $(buildConfiguration)