-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtask_azure_sql_scaling_preprod.yaml
More file actions
59 lines (51 loc) · 1.19 KB
/
task_azure_sql_scaling_preprod.yaml
File metadata and controls
59 lines (51 loc) · 1.19 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
---
name: $(Build.SourceBranchName)-$(Date:yyyyMMdd)_$(Rev:r)
trigger: none
pr: none
pool:
name: private-pool-prod-uks
schedules:
- cron: "0 7 * * *" # Run at 7:00 AM UTC
displayName: 'Scale_Peak'
branches:
include:
- main
always: true
- cron: "0 17 * * *" # Run at 5:00 PM UTC
displayName: 'Scale_OffPeak'
branches:
include:
- main
always: true
resources:
repositories:
- repository: dtos-devops-templates
type: github
name: NHSDigital/dtos-devops-templates
ref: d4f16d361f70210e56cb698f5d4bbba14a42c892
endpoint: NHSDigital
parameters:
- name: manualOverride
displayName: Manual Override
type: string
default: 'false'
values:
- 'false'
- 'Scale_Peak'
- 'Scale_OffPeak'
- name: Sku_Peak
displayName: Peak SKU
type: string
default: 'S2'
- name: Sku_OffPeak
displayName: Off-Peak SKU
type: string
default: 'S2'
variables:
- group: PRE_core_backend
stages:
- template: ../templates/task-azure-sql-scaling-common.yaml
parameters:
manualOverride: ${{ parameters.manualOverride }}
Sku_Peak: ${{ parameters.Sku_Peak }}
Sku_OffPeak: ${{ parameters.Sku_OffPeak }}