-
Notifications
You must be signed in to change notification settings - Fork 31
206 lines (182 loc) · 7.95 KB
/
pull-release.yml
File metadata and controls
206 lines (182 loc) · 7.95 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
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: get latest helm charts
on:
schedule:
- cron: '00 06 * * 5' #every friday at 11:30 AM IST/ 6 AM UST
# workflow_dispatch will let us manually trigger the workflow from GitHub actions dashboard.
# See https://docs.github.com/en/free-pro-team@latest/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:
jobs:
get-latest-releases:
runs-on: ubuntu-20.04
steps:
- name: Get latest charts for kafka
id: kafka
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/kafka
- name: Get latest charts for zookeeper
id: zookeeper
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/zookeeper
- name: Get latest charts for pinot
id: pinot
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/pinot
- name: Get latest charts for schema-registry
id: schema-registry
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/schema-registry
- name: Get latest charts for mongodb
id: mongodb
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/mongodb
- name: Get latest charts for oc-collector
id: hypertrace-collector
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace-collector
- name: Get latest charts for ingester
id: hypertrace-ingester
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace-ingester
- name: Get latest charts for ui
id: hypertrace-ui
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace-ui
- name: Get latest charts for graphql
id: hypertrace-graphql
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace-graphql
- name: Get latest charts for attribute-service
id: attribute-service
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/attribute-service
- name: Get latest charts for gateway-service
id: gateway-service
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/gateway-service
- name: Get latest charts for query-service
id: query-service
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/query-service
- name: Get latest charts for entity-service
id: entity-service
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/entity-service
- name: Get latest charts for config-service
id: config-service
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/config-service
- name: Get latest charts for hypertrace
id: hypertrace
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace
- name: Get latest charts for hypertrace-service
id: hypertrace-service
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace-service
- name: Get latest charts for hypertrace-alert-engine
id: hypertrace-alert-engine
uses: oprypin/find-latest-tag@v1
with:
repository: hypertrace/hypertrace-alert-engine
- uses: actions/checkout@v2
- name: Install changelog python library
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
pip install github-changelog
- name: Update data services charts
run: |
chmod +x .github/workflows/scripts/create-charts.sh
./.github/workflows/scripts/create-charts.sh data-services
env:
kafka_version: ${{ steps.kafka.outputs.tag }}
pinot_version: ${{ steps.pinot.outputs.tag }}
schema_registry_version: ${{ steps.schema-registry.outputs.tag }}
mongodb_version: ${{ steps.mongodb.outputs.tag }}
zookeeper_version: ${{ steps.zookeeper.outputs.tag }}
- name: Update platform services charts
run: |
chmod +x .github/workflows/scripts/create-charts.sh
./.github/workflows/scripts/create-charts.sh platform-services
env:
hypertrace_collector_version : ${{ steps.hypertrace-collector.outputs.tag }}
hypertrace_ingester_version: ${{ steps.hypertrace-ingester.outputs.tag }}
hypertrace_ui_version: ${{ steps.hypertrace-ui.outputs.tag }}
hypertrace_graphql_version: ${{ steps.hypertrace-graphql.outputs.tag }}
attribute_service_version: ${{ steps.attribute-service.outputs.tag }}
query_service_version: ${{ steps.query-service.outputs.tag }}
gateway_service_version: ${{ steps.gateway-service.outputs.tag }}
entity_service_version: ${{ steps.entity-service.outputs.tag }}
config_service_version: ${{ steps.config-service.outputs.tag }}
hypertrace_service_version: ${{ steps.hypertrace-service.outputs.tag }}
hypertrace_alert_engine_version: ${{ steps.hypertrace-alert-engine.outputs.tag }}
- name: update release notes
run: |
./.github/workflows/scripts/create-charts.sh release-notes
env:
hypertrace_collector_version : ${{ steps.hypertrace-collector.outputs.tag }}
hypertrace_ingester_version: ${{ steps.hypertrace-ingester.outputs.tag }}
hypertrace_ui_version: ${{ steps.hypertrace-ui.outputs.tag }}
hypertrace_graphql_version: ${{ steps.hypertrace-graphql.outputs.tag }}
attribute_service_version: ${{ steps.attribute-service.outputs.tag }}
query_service_version: ${{ steps.query-service.outputs.tag }}
gateway_service_version: ${{ steps.gateway-service.outputs.tag }}
entity_service_version: ${{ steps.entity-service.outputs.tag }}
config_service_version: ${{ steps.config-service.outputs.tag }}
hypertrace_version: ${{ steps.hypertrace.outputs.tag }}
hypertrace_alert_engine_version: ${{ steps.hypertrace-alert-engine.outputs.tag }}
- name: update compatibility matrix
run: |
./.github/workflows/scripts/create-charts.sh compatibility-matrix
env:
hypertrace_collector_version : ${{ steps.hypertrace-collector.outputs.tag }}
hypertrace_ingester_version: ${{ steps.hypertrace-ingester.outputs.tag }}
hypertrace_ui_version: ${{ steps.hypertrace-ui.outputs.tag }}
hypertrace_graphql_version: ${{ steps.hypertrace-graphql.outputs.tag }}
attribute_service_version: ${{ steps.attribute-service.outputs.tag }}
query_service_version: ${{ steps.query-service.outputs.tag }}
gateway_service_version: ${{ steps.gateway-service.outputs.tag }}
entity_service_version: ${{ steps.entity-service.outputs.tag }}
config_service_version: ${{ steps.config-service.outputs.tag }}
hypertrace_alert_engine_version: ${{ steps.hypertrace-alert-engine.outputs.tag }}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.TOKEN }}
commit-message: Updates helm charts
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update-helm-charts
delete-branch: true
title: 'chore: updates helm charts'
body: |
This PR,
- Updates helm charts as per the latest releases of all services.
- **Note: This is auto-generated PR so please test and verify before merging.**
labels: |
helm-updates
automated pr
release
assignees: JBAhire
reviewers: kotharironak, rish691
team-reviewers: |
owners
maintainers
draft: false