-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines-scheduled.yml
54 lines (48 loc) · 1.61 KB
/
azure-pipelines-scheduled.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
# 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: 'Scheduled-$(SourceBranchName)-$(Build.SourceVersion) Build-$(Build.BuildId)'
schedules:
- cron: "0 18 * * *"
displayName: Daily evening build
branches:
include:
- master
always: true
trigger: none
pr: none
variables:
# group: pipeline-env-variables
environment: 'stg' #Uset test and promoting to stg until prod is ready
env.upper: 'STG'
env.prom: 'prod'
env.prom.upper: 'PROD'
application.name: 'pcq-loader'
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)'
helmRepo: 'ssprivate-$(env)'
stages:
- template: pipeline-steps/templates/build-deploy-stage.yaml@mi-core
parameters:
env: $(environment)
applicationName: $(application.name)
product: $(product)
azureVault: $(vault)
chartEnv: $(environment)
mutationTest: True
functionalTest: true
integrationTest: true
azureSecreKeys: 'jwt-secret'
azureKeyMapping:
- key: JWT_SECRET
value: 'jwt-secret'