-
Notifications
You must be signed in to change notification settings - Fork 3
96 lines (81 loc) · 3.38 KB
/
flexibleserver-auto-start.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: flexible-server-auto-start
on:
workflow_dispatch:
schedule:
- cron: '30 6 * * 1-5' # Every weekday at 6:30am BST
env:
DEV_ENV: ${{ secrets.DEV_ENV }}
permissions:
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Az CLI login'
uses: azure/login@v2
with:
client-id: 2b6fa9d7-7dba-4600-a58a-5e25554997aa # DTS AKS Auto-Shutdown
tenant-id: 531ff96d-0ae9-462a-8d2d-bec7c0b42082 # HMCTS.NET
allow-no-subscriptions: true
# REPLICA
- name: Staging Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start staging '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Test Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start testing '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Demo Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start demo '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Development Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start development '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Sandbox Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start sandbox '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: ITHC Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start ithc '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Untagged Replicas - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start untagged '' replica
env:
DEV_ENV: ${{ env.DEV_ENV }}
# PRIMARY
- name: Staging - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start staging '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Test - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start testing '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Demo - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start demo '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Development - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start development '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Sandbox - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start sandbox '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: ITHC - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start ithc '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Untagged - Postgres Flexible server Auto Start
run: ./scripts/flexible-server/auto-start-stop.sh start untagged '' primary
env:
DEV_ENV: ${{ env.DEV_ENV }}
- name: Output log file
run: ./scripts/common/log-output.sh