-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathazure-pipelines-main.yml
More file actions
59 lines (54 loc) · 2.17 KB
/
azure-pipelines-main.yml
File metadata and controls
59 lines (54 loc) · 2.17 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
trigger:
branches:
include:
- main
pool:
vmImage: "ubuntu-latest"
variables:
prBuildServiceConnectionName: "nbs-myacicd-rg-int"
prDockerServiceConnectionName: "nbs-mya-container-registry-sc"
parameters:
- name: environments
type: object
default: ["dev"]
values: ["dev", "perf"]
stages:
- template: scripts/pipeline-templates/build.yml
parameters:
prBuildServiceConnectionName: $(prBuildServiceConnectionName)
prDockerServiceConnectionName: $(prDockerServiceConnectionName)
- ${{ each env in parameters.environments }}:
- template: scripts/pipeline-templates/deploy.yml
parameters:
env: ${{env}}
variable_group: nbs-mya-${{env}}
${{ if eq(env, 'dev') }}:
httpFunctionAppName: vaccs-mya-func-${{env}}-uks
highLoadFunctionAppName: vaccs-mya-hlfunc-${{env}}-uks
serviceBusFunctionAppName: vaccs-mya-sbfunc-${{env}}-uks
timerFunctionAppName: vaccs-mya-timerfunc-${{env}}-uks
webServerName: vaccs-mya-app-${{env}}-uks
cosmosAccountName: vaccs-mya-cdb-${{env}}-uks
key_vault_variable_group: covid19bookingkvintuks
resourceGroup: vaccs-mya-${{env}}-uks
serviceConnectionName: vaccs-mya-${{env}}-uks
isHotfix: false
isStrategicTenant: true
${{ else }}:
httpFunctionAppName: nbs-mya-func-${{env}}-uks
highLoadFunctionAppName: nbs-mya-hlfunc-${{env}}-uks
serviceBusFunctionAppName: nbs-mya-sbfunc-${{env}}-uks
timerFunctionAppName: nbs-mya-timerfunc-${{env}}-uks
webServerName: nbs-mya-app-${{env}}-uks
cosmosAccountName: nbs-mya-cdb-${{env}}-uks
key_vault_variable_group: covid19bookingkvstaguks
resourceGroup: nbs-mya${{env}}-rg-stag-uks
serviceConnectionName: nbs-mya${{env}}-rg-stag
isHotfix: false
isStrategicTenant: false
- template: features/scripts/deploy-feature-toggles.yml
parameters:
env: ${{env}}
dependsOnDeployment: true
# no restrictions on branch name for dev and perf
isValidBranch: true