-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
58 lines (56 loc) · 1.56 KB
/
azure-pipelines.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
trigger:
- master
variables:
skipComponentGovernanceDetection: true
prefix: ignite-sasha-demo-2
location: eastus
stages:
- stage: InitAndPlan
displayName: InitAndPlan
jobs:
- job: InitAndPlan
displayName: InitAndPlan
pool:
vmImage: ubuntu-latest
steps:
- script: |
terraform init -input=false
terraform plan -input=false
env:
ARM_SUBSCRIPTION_ID: $(subscriptionId)
ARM_CLIENT_ID: $(appId)
ARM_CLIENT_SECRET: $(password)
ARM_TENANT_ID: $(tenantId)
ARM_ACCESS_KEY: $(accessKey)
TF_VAR_prefix: $(prefix)
TF_VAR_location: $(location)
TF_VAR_kubernetes_client_id: $(appId)
TF_VAR_kubernetes_client_secret: $(password)
TF_IN_AUTOMATION: 1
- stage: Apply
displayName: Apply
jobs:
- deployment: Apply
displayName: Apply
pool:
vmImage: ubuntu-latest
environment: production
strategy:
runOnce:
deploy:
steps:
- checkout: self
- script: |
terraform init -input=false
terraform apply -input=false -auto-approve
env:
ARM_SUBSCRIPTION_ID: $(subscriptionId)
ARM_CLIENT_ID: $(appId)
ARM_CLIENT_SECRET: $(password)
ARM_TENANT_ID: $(tenantId)
ARM_ACCESS_KEY: $(accessKey)
TF_VAR_prefix: $(prefix)
TF_VAR_location: $(location)
TF_VAR_kubernetes_client_id: $(appId)
TF_VAR_kubernetes_client_secret: $(password)
TF_IN_AUTOMATION: 1