-
Notifications
You must be signed in to change notification settings - Fork 7
301 lines (257 loc) · 11.6 KB
/
update-dependencies.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
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
# This workflow proposes updates to the dependencies that dependabot cannot
name: Update dependencies
on:
# Allow manual executions
workflow_dispatch:
# Run nightly
schedule:
- cron: '0 0 * * *'
jobs:
# Note that although the Azimuth components all have Helm charts, we use the
# GitHub releases to discover new versions, so that we only get tagged versions
# For Azimuth components, we also allow pre-releases so we can easily cut release candidates
propose_github_release_updates:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# - key: ansible-slurm-appliance
# path: ./roles/azimuth_caas_operator/defaults/main.yml
# repository: stackhpc/ansible-slurm-appliance
# prereleases: "yes"
# version_jsonpath: azimuth_caas_stackhpc_slurm_appliance_git_version
- key: azimuth
path: ./roles/azimuth/defaults/main.yml
repository: azimuth-cloud/azimuth
prereleases: "yes"
version_jsonpath: azimuth_chart_version
- key: azimuth-caas-operator
path: ./roles/azimuth_caas_operator/defaults/main.yml
repository: azimuth-cloud/azimuth-caas-operator
prereleases: "yes"
version_jsonpath: azimuth_caas_operator_chart_version
- key: azimuth-capi-operator
path: ./roles/azimuth_capi_operator/defaults/main.yml
repository: azimuth-cloud/azimuth-capi-operator
prereleases: "yes"
version_jsonpath: azimuth_capi_operator_chart_version
- key: azimuth-identity-operator
path: ./roles/azimuth_identity_operator/defaults/main.yml
repository: azimuth-cloud/azimuth-identity-operator
prereleases: "yes"
version_jsonpath: azimuth_identity_operator_chart_version
- key: azimuth-images
path: ./roles/community_images/defaults/main.yml
repository: azimuth-cloud/azimuth-images
prereleases: "yes"
version_jsonpath: community_images_azimuth_images_version
- key: azimuth-schedule-operator
path: ./roles/azimuth_schedule_operator/defaults/main.yml
repository: azimuth-cloud/azimuth-schedule-operator
prereleases: "yes"
version_jsonpath: azimuth_schedule_operator_chart_version
- key: caas-workstation
path: ./roles/azimuth_caas_operator/defaults/main.yml
repository: azimuth-cloud/caas-workstation
prereleases: "yes"
version_jsonpath: azimuth_caas_workstation_default_git_version
- key: caas-repo2docker
path: ./roles/azimuth_caas_operator/defaults/main.yml
repository: azimuth-cloud/caas-repo2docker
prereleases: "yes"
version_jsonpath: azimuth_caas_repo2docker_default_git_version
- key: caas-rstudio
path: ./roles/azimuth_caas_operator/defaults/main.yml
repository: azimuth-cloud/caas-r-studio-server
prereleases: "yes"
version_jsonpath: azimuth_caas_rstudio_default_git_version
- key: capi-helm-openstack-cluster
path: ./roles/capi_cluster/defaults/main.yml
repository: azimuth-cloud/capi-helm-charts
prereleases: "yes"
version_jsonpath: capi_cluster_chart_version
- key: cluster-api
path: ./roles/clusterapi/defaults/main.yml
repository: kubernetes-sigs/cluster-api
version_jsonpath: clusterapi_core_version
- key: cluster-api-provider-openstack
path: ./roles/clusterapi/defaults/main.yml
repository: kubernetes-sigs/cluster-api-provider-openstack
version_jsonpath: clusterapi_openstack_version
- key: cluster-api-addon-provider
path: ./roles/clusterapi/defaults/main.yml
repository: azimuth-cloud/cluster-api-addon-provider
prereleases: "yes"
version_jsonpath: clusterapi_addon_provider_chart_version
- key: cluster-api-janitor-openstack
path: ./roles/clusterapi/defaults/main.yml
repository: azimuth-cloud/cluster-api-janitor-openstack
prereleases: "yes"
version_jsonpath: clusterapi_janitor_openstack_chart_version
- key: helm
path: ./roles/helm/defaults/main.yml
repository: helm/helm
version_jsonpath: helm_version
- key: k3s
path: ./roles/k3s/defaults/main.yml
repository: k3s-io/k3s
version_jsonpath: k3s_version
- key: keycloak-operator
path: ./roles/keycloak/defaults/main.yml
repository: keycloak/keycloak-k8s-resources
tags: "yes"
version_jsonpath: keycloak_operator_version
- key: kustomize
path: ./roles/kustomize/defaults/main.yml
repository: kubernetes-sigs/kustomize
version_jsonpath: kustomize_version
- key: velero-cli
path: ./roles/velero/defaults/main.yml
repository: vmware-tanzu/velero
version_jsonpath: velero_cli_version
- key: velero-plugin-for-aws
path: ./roles/velero/defaults/main.yml
repository: vmware-tanzu/velero-plugin-for-aws
version_jsonpath: velero_s3_plugin_image_version
- key: zenith
path: ./roles/zenith/defaults/main.yml
repository: azimuth-cloud/zenith
prereleases: "yes"
version_jsonpath: zenith_chart_version
name: ${{ matrix.key }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for most recent GitHub release
id: next
uses: azimuth-cloud/github-actions/github-latest-release@master
with:
repository: ${{ matrix.repository }}
prereleases: ${{ matrix.prereleases || 'no' }}
tags: ${{ matrix.tags || 'no' }}
- name: Update dependency key
uses: azimuth-cloud/github-actions/config-update@master
with:
path: ${{ matrix.path }}
updates: |
${{ matrix.version_jsonpath }}=${{ steps.next.outputs.version }}
- name: Generate app token for PR
uses: azimuth-cloud/github-actions/generate-app-token@master
id: generate-app-token
with:
repository: ${{ github.repository }}
app-id: ${{ secrets.AUTOMATION_APP_ID }}
app-private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
- name: Propose changes via PR if required
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-app-token.outputs.token }}
commit-message: >-
Update ${{ matrix.key }} to ${{ steps.next.outputs.version }}
branch: update-dependency/${{ matrix.key }}
delete-branch: true
title: >-
Update ${{ matrix.key }} to ${{ steps.next.outputs.version }}
body: >
This PR was created automatically to update
${{ matrix.key }} to ${{ steps.next.outputs.version }}.
labels: |
automation
dependency-update
propose_helm_chart_updates:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- key: cert-manager
path: ./roles/certmanager/defaults/main.yml
chart_repo_jsonpath: certmanager_chart_repo
chart_name_jsonpath: certmanager_chart_name
chart_version_jsonpath: certmanager_chart_version
- key: cloud-metrics-grafana
path: ./roles/cloud_metrics/defaults/main.yml
chart_repo_jsonpath: cloud_metrics_grafana_chart_repo
chart_name_jsonpath: cloud_metrics_grafana_chart_name
chart_version_jsonpath: cloud_metrics_grafana_chart_version
- key: harbor
path: ./roles/harbor/defaults/main.yml
chart_repo_jsonpath: harbor_chart_repo
chart_name_jsonpath: harbor_chart_name
chart_version_jsonpath: harbor_chart_version
- key: helm-dashboard
path: ./roles/helm_dashboard/defaults/main.yml
chart_repo_jsonpath: helm_dashboard_chart_repo
chart_name_jsonpath: helm_dashboard_chart_name
chart_version_jsonpath: helm_dashboard_chart_version
- key: ingress-nginx
path: ./roles/ingress_nginx/defaults/main.yml
chart_repo_jsonpath: ingress_nginx_chart_repo
chart_name_jsonpath: ingress_nginx_chart_name
chart_version_jsonpath: ingress_nginx_chart_version
- key: kube-prometheus-stack
path: ./roles/kube_prometheus_stack/defaults/main.yml
chart_repo_jsonpath: kube_prometheus_stack_chart_repo
chart_name_jsonpath: kube_prometheus_stack_chart_name
chart_version_jsonpath: kube_prometheus_stack_chart_version
- key: kubernetes-dashboard
path: ./roles/kubernetes_dashboard/defaults/main.yml
chart_repo_jsonpath: kubernetes_dashboard_chart_repo
chart_name_jsonpath: kubernetes_dashboard_chart_name
chart_version_jsonpath: kubernetes_dashboard_chart_version
- key: snapshot-controller
path: ./roles/velero/defaults/main.yml
chart_repo_jsonpath: velero_csi_snapshot_controller_chart_repo
chart_name_jsonpath: velero_csi_snapshot_controller_chart_name
chart_version_jsonpath: velero_csi_snapshot_controller_chart_version
- key: velero
path: ./roles/velero/defaults/main.yml
chart_repo_jsonpath: velero_chart_repo
chart_name_jsonpath: velero_chart_name
chart_version_jsonpath: velero_chart_version
name: ${{ matrix.key }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract repo and chart
id: chart-info
uses: azimuth-cloud/github-actions/config-extract@master
with:
path: ${{ matrix.path }}
outputs: |
repo=${{ matrix.chart_repo_jsonpath }}
name=${{ matrix.chart_name_jsonpath }}
- name: Check for updates
id: next
uses: azimuth-cloud/github-actions/helm-latest-version@master
with:
repository: ${{ steps.chart-info.outputs.repo }}
chart: ${{ steps.chart-info.outputs.name }}
- name: Update chart version
uses: azimuth-cloud/github-actions/config-update@master
with:
path: ${{ matrix.path }}
updates: |
${{ matrix.chart_version_jsonpath }}=${{ steps.next.outputs.version }}
- name: Generate app token for PR
uses: azimuth-cloud/github-actions/generate-app-token@master
id: generate-app-token
with:
repository: ${{ github.repository }}
app-id: ${{ secrets.AUTOMATION_APP_ID }}
app-private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }}
- name: Propose changes via PR if required
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-app-token.outputs.token }}
commit-message: >-
Update ${{ matrix.key }} to ${{ steps.next.outputs.version }}
branch: update-dependency/${{ matrix.key }}
delete-branch: true
title: >-
Update ${{ matrix.key }} to ${{ steps.next.outputs.version }}
body: >
This PR was created automatically to update
${{ matrix.key }} to ${{ steps.next.outputs.version }}.
labels: |
automation
dependency-update