-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines-demo4.yml
47 lines (40 loc) · 1.1 KB
/
azure-pipelines-demo4.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
trigger:
batch: true
branches:
include:
- master
paths:
include:
- Demo$/*
- azure-pipelines-demo4.yml
- azure-pipelines-terraform-release.yml
pr:
autoCancel: true
variables:
workingDirectory: '$(System.DefaultWorkingDirectory)/Demo4'
name: hashiconf-demo4
stages:
# Deploy to Staging
- stage: Staging
jobs:
- template: azure-pipelines-terraform-release.yml
parameters:
storageAccountRg: $(storageAccountRg)
storageAccountName: $(storageAccountName)
storageAccountKey: $(storageAccountKey)
azureSubscription: $(sandboxAzureSubscription)
workingDirectory: $(workingDirectory)
name: '$(name)'
environment: 'staging'
# Deploy to Production
- stage: Production
jobs:
- template: azure-pipelines-terraform-release.yml
parameters:
storageAccountRg: $(storageAccountRg)
storageAccountName: $(storageAccountName)
storageAccountKey: $(storageAccountKey)
azureSubscription: $(productionAzureSubscription)
workingDirectory: $(workingDirectory)
name: '$(name)'
environment: 'production'