-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
63 lines (57 loc) · 1.79 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
59
60
61
62
63
# Java
# Package your Java project.
# Add steps that install, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
name: '$(SourceBranchName)-$(Build.SourceVersion) Build-$(Build.BuildId)'
trigger:
batch: true
branches:
include:
- master
- ithc
tags:
include:
- v*
pr:
autoCancel: true
branches:
include:
- master
variables:
# group: pipeline-env-variables
${{ if eq( variables['Build.Reason'], 'PullRequest') }}:
environment: 'test'
env.upper: 'TEST'
${{ if ne( variables['Build.Reason'], 'PullRequest') }}:
environment: 'stg' #Unset test and promoting to stg until prod is ready
env.upper: 'STG'
env.prom: 'prod'
env.prom.upper: 'PROD'
application.name: 'pcq-consolidation-service'
azure.container.registry: 'ssprivate$(env).azurecr.io'
azure.subscription.endpoint: 'DTS-SHAREDSERVICES-$(env.upper)'
azure.aks.resourcegroup: 'ss_$(env)_kubernetes_resource_group'
azure.aks.cluster: 'ss_aks_$(env)'
azure.prom.subscription.endpoint: 'DTS-SHAREDSERVICES-$(env.prom.upper)'
azure.prom.aks.resourcegroup: 'ss_$(env.prom)_kubernetes_resource_group'
azure.prom.aks.cluster: 'ss_aks_$(env.prom)'
manual.branch.prefix: 'master'
product: 'pcq'
vault: 'pcq-$(env)'
azure.prom.acr: 'ssprivate$(env.prom)'
stages:
- template: pipeline-steps/templates/build-deploy-stage.yaml@mi-core
parameters:
env: $(environment)
applicationName: $(application.name)
product: $(product)
azureVault: $(vault)
chartEnv: $(environment)
promEnv: $(env.prom)
mutationTest: False
functionalTest: true
integrationTest: true
azureSecreKeys: 'jwt-secret'
azureKeyMapping:
- key: JWT_SECRET
value: 'jwt-secret'