-
Notifications
You must be signed in to change notification settings - Fork 3
162 lines (161 loc) · 7.5 KB
/
Release-candidate-containers.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
name: Release Candidate Container Build and Deployment Preparation
on:
workflow_dispatch:
inputs:
environment:
description: 'The environment to tag the resulting images to. The resulting container would be tagged as <application-name>:<application-version>-<environment>.<githubsha>'
type: choice
required: true
default: 'TEST'
options:
- TEST
values:
description: 'The name of the Helm chart values file to update with the resulting tag name.'
type: choice
required: true
default: 'test2'
options:
- test2
build-elasticsearch:
description: 'Release a new ElasticSearch Container?'
required: true
type: boolean
default: false
build-nifi:
description: 'Release a new NiFi Container?'
required: true
type: boolean
default: false
jobs:
build-nbs-gateway-release-candidate:
name: Build NBS Gateway Release Candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Release-gradle-microservice-container.yaml@main
with:
microservice_name: nbs-gateway
build-new-container: true
dockerfile_relative_path: -f ./apps/nbs-gateway/Dockerfile .
environment_classifier: ${{inputs.environment}}
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
prepare-nbs-gateway-release-candidate:
name: Prepare NBS Gateway Release Candidate Deployment
needs: build-nbs-gateway-release-candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Update-helm-charts.yaml@main
with:
microservice_name: nbs-gateway
values_file_with_path: charts/nbs-gateway/values-${{inputs.values}}.yaml
new_image_tag: ${{ needs.build-nbs-gateway-release-candidate.outputs.output_image_tag }}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
build-modernization-api-release-candidate:
name: Build Modernization API Release Candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Release-gradle-microservice-container.yaml@main
with:
microservice_name: modernization-api
build-new-container: true
dockerfile_relative_path: -f ./apps/modernization-api/Dockerfile .
environment_classifier: ${{inputs.environment}}
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
prepare-modernization-api-release-candidate:
name: Prepare Modernization API Candidate Deployment
needs: build-modernization-api-release-candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Update-helm-charts.yaml@main
with:
microservice_name: modernization-api
values_file_with_path: charts/modernization-api/values-${{inputs.values}}.yaml
new_image_tag: ${{ needs.build-modernization-api-release-candidate.outputs.output_image_tag }}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
build-page-builder-api-release-candidate:
name: Build Page Builder API Release Candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Release-gradle-microservice-container.yaml@main
with:
microservice_name: page-builder-api
build-new-container: true
dockerfile_relative_path: -f ./apps/question-bank/Dockerfile .
environment_classifier: ${{inputs.environment}}
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
prepare-page-builder-api-release-candidate:
name: Prepare Page Builder API Candidate Deployment
needs: build-page-builder-api-release-candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Update-helm-charts.yaml@main
with:
microservice_name: page-builder-api
values_file_with_path: charts/page-builder-api/values-${{inputs.values}}.yaml
new_image_tag: ${{ needs.build-page-builder-api-release-candidate.outputs.output_image_tag }}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
build-elasticsearch-release-candidate:
if: ${{ inputs.build-elasticsearch == 'true' }}
name: Build Elasticsearch Release Candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Release-gradle-microservice-container.yaml@main
with:
microservice_name: elasticsearch
build-new-container: true
dockerfile_relative_path: -f ./cdc-sandbox/elasticsearch/Dockerfile .
environment_classifier: ${{inputs.environment}}
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
prepare-elasticsearch-release-candidate:
name: Prepare Elasticsearch Release Candidate Deployment
needs: build-elasticsearch-release-candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Update-helm-charts.yaml@main
with:
microservice_name: elasticsearch
values_file_with_path: charts/elasticsearch-efs/values-${{inputs.values}}.yaml
new_image_tag: ${{ needs.build-elasticsearch-release-candidate.outputs.output_image_tag }}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
build-nifi-release-candidate:
if: ${{ inputs.build-nifi == 'true' }}
name: Build NiFi Release Candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Release-gradle-microservice-container.yaml@main
with:
microservice_name: nifi
build-new-container: true
dockerfile_relative_path: -f ./cdc-sandbox/nifi/Dockerfile .
environment_classifier: ${{inputs.environment}}
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}
prepare-nifi-release-candidate:
name: Prepare NiFi Release Candidate Deployment
needs: build-nifi-release-candidate
uses: CDCgov/NEDSS-Workflows/.github/workflows/Update-helm-charts.yaml@main
with:
microservice_name: nifi
values_file_with_path: charts/nifi-efs/values-${{inputs.values}}.yaml
new_image_tag: ${{ needs.build-nifi-release-candidate.outputs.output_image_tag }}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}
HELM_TOKEN: ${{secrets.HELM_TOKEN}}