generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (71 loc) · 2.45 KB
/
messaging.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
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Replay messages
# Copy HMPPS Domain Event messages from production to pre-production
on:
workflow_dispatch:
inputs:
start_time:
description: Start time
type: string
required: true
default: 'ago(1d)'
end_time:
description: End time
type: string
required: true
default: 'now()'
queue_name:
description: Queue
type: choice
required: true
options:
- approved-premises-and-delius-queue
- custody-key-dates-and-delius-queue
- make-recall-decisions-and-delius-queue
- manage-pom-cases-and-delius-queue
- pre-sentence-reports-to-delius-queue
- prison-case-notes-to-probation-queue
- prison-custody-status-to-delius-queue
- refer-and-monitor-and-delius-queue
- risk-assessment-scores-to-delius-queue
- tier-to-delius-queue
- unpaid-work-and-delius-queue
- workforce-allocations-to-delius-queue
- manage-offences-and-delius-queue
- opd-and-delius-queue
- cas3-and-delius-queue
- prison-identifier-and-delius-queue
- assessment-summary-and-delius-queue
- cas2-and-delius-queue
- common-platform-and-delius-queue
# ^ add new queues here
jobs:
replay:
runs-on: ubuntu-latest
environment: preprod
steps:
- uses: actions/checkout@v4
- name: Authenticate to MOJ Cloud Platform
uses: ./.github/actions/cloud-platform-auth
with:
api: ${{ secrets.KUBE_ENV_API }}
cert: ${{ secrets.KUBE_CERT }}
cluster: ${{ secrets.KUBE_CLUSTER }}
namespace: ${{ secrets.KUBE_NAMESPACE }}
token: ${{ secrets.KUBE_TOKEN }}
- name: Checkout scripts repo
uses: actions/checkout@v4
with:
path: scripts
repository: ministryofjustice/hmpps-probation-integration-scripts
- name: Replay messages
env:
APP_INSIGHTS_APPLICATION_GUID: ${{ secrets.APP_INSIGHTS_APPLICATION_GUID }}
APP_INSIGHTS_API_KEY: ${{ secrets.APP_INSIGHTS_API_KEY }}
START_TIME: ${{ inputs.start_time }}
END_TIME: ${{ inputs.end_time }}
QUEUE_NAME: ${{ inputs.queue_name }}
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install terraform
./replay-messages.sh
working-directory: scripts