-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-prod.yml
41 lines (38 loc) · 1.2 KB
/
azure-pipelines-prod.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
#trigger:
# branches:
# include:
# - main
trigger: none
variables:
# This group has variables needed for the service principal to authenticate with Azure
- group: azure-devops-service-principal
- group: xledger-syncronizer-prod
- name: azureSubscription
value: 'c970b736-a87d-42e2-b2a6-73d193d9034e'
- name: functionAppName
value: 'xledger-syncronizer-prod'
- name: functionAppRootDirectory
value: '.'
- name: vmImageName
value: 'ubuntu-latest'
- name: infrastructureRootFolder
value: 'infrastructure/prod'
- name: tfvarsFile
value: 'terraform.tfvars'
- name: deploymentEnvironment
value: 'env01'
stages:
# Deploy infrastructure with terraform.
- template: templates/deploy_infrastructure.yml
parameters:
infrastructureRootFolder: '$(infrastructureRootFolder)'
tfvarsFile: '$(tfvarsFile)'
deploymentEnvironment: '$(deploymentEnvironment)'
vmImageName: '$(vmImageName)'
# Build and deploy function app.
- template: templates/build_and_deploy_function_app.yml
parameters:
azureSubscription: '$(azureSubscription)'
functionAppName: '$(functionAppName)'
vmImageName: '$(vmImageName)'
functionAppRootDirectory: '$(functionAppRootDirectory)'