-
Notifications
You must be signed in to change notification settings - Fork 3
136 lines (124 loc) · 3.79 KB
/
full-deployment.yml
File metadata and controls
136 lines (124 loc) · 3.79 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Full Deployment
on:
workflow_dispatch:
inputs:
environment:
description: "Which environment would you like to deploy to?"
type: choice
options:
- dev
- pre-prod
- prod
required: true
is_deployment:
description: "Do you want to apply changes?"
type: boolean
default: false
required: true
workflow_call:
inputs:
environment:
default: dev
type: string
is_deployment:
description: "Do you want to apply changes?"
type: boolean
default: true
permissions:
pull-requests: write
id-token: write
contents: read
jobs:
ehr-repo:
name: EHR Repo CI
secrets: inherit
uses: "./.github/workflows/base-node-service-jobs.yml"
with:
service: ehr-repo
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
ecr_alias: deductions/ehr-repo
ehr-out-service:
name: EHR Out Service CI
secrets: inherit
uses: "./.github/workflows/base-node-service-jobs.yml"
with:
service: ehr-out-service
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
ecr_alias: deductions/ehr-out-service
mesh-forwarder:
name: MESH Forwarder CI
uses: "./.github/workflows/base-python-service-jobs.yml"
with:
service: mesh-forwarder
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
ecr_alias: deductions/mesh-forwarder
secrets: inherit
gp2gp-messenger:
name: GP2GP Messenger CI
uses: "./.github/workflows/base-node-service-jobs.yml"
with:
service: gp2gp-messenger
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
ecr_alias: deductions/gp2gp-messenger
secrets: inherit
nems-event-processor:
name: NEMs Event Processor CI
uses: "./.github/workflows/base-java-service-jobs.yml"
with:
service: nems-event-processor
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
requires_localstack: true
ecr_alias: deductions/nems-event-processor
secrets: inherit
ehr-transfer-service:
name: EHR Transfer Service CI
uses: "./.github/workflows/base-java-service-jobs.yml"
with:
service: ehr-transfer-service
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
requires_localstack: true
ecr_alias: deductions/ehr-transfer-service
secrets: inherit
pds-adaptor:
name: PDS Adaptor CI
uses: "./.github/workflows/base-java-service-jobs.yml"
with:
service: pds-adaptor
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
ecr_alias: deductions/pds-adaptor
secrets: inherit
re-registration-service:
name: Re-registration Service CI
uses: "./.github/workflows/base-java-service-jobs.yml"
with:
service: re-registration-service
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
requires_localstack: true
image_prefix: repo/
ecr_alias: repo/re-registration-service
secrets: inherit
suspension-service:
name: Suspension Service CI
uses: "./.github/workflows/base-java-service-jobs.yml"
with:
service: suspension-service
environment: ${{ inputs.environment }}
is_deployment: ${{ inputs.is_deployment }}
requires_localstack: true
image_prefix: repo/
ecr_alias: repo/suspension-service
secrets: inherit
e2e-testing:
name: End to End
if: ${{ vars.E2E_TESTS_ENABLED == 'true' && success() }}
needs: [ehr-repo, ehr-out-service, mesh-forwarder]
uses: ./.github/workflows/e2e.yml
secrets: inherit