-
Notifications
You must be signed in to change notification settings - Fork 9
72 lines (63 loc) · 2.18 KB
/
release-helm-chart.yaml
File metadata and controls
72 lines (63 loc) · 2.18 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
name: Release Helm Chart
on:
push:
branches:
- main
paths:
- 'charts/cloudcost-exporter/Chart.yaml'
workflow_dispatch:
env:
CR_INDEX_PATH: "${{ github.workspace }}/.cr-index"
CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages"
CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool"
permissions: {}
jobs:
validate-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Helm
uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
with:
version: 'v3.14.0'
- name: Lint Helm chart
run: |
helm lint charts/cloudcost-exporter
- name: Template Helm chart with default values
run: |
helm template cloudcost-exporter charts/cloudcost-exporter
- name: Template Helm chart with AWS values
run: |
helm template cloudcost-exporter charts/cloudcost-exporter \
-f charts/cloudcost-exporter/values.aws.yaml
release-chart:
needs: validate-chart
uses: grafana/helm-charts/.github/workflows/update-helm-repo.yaml@8522a28e16bc2c84c9339c22c6bdf5446b5e431a
permissions:
contents: write
id-token: write
packages: write
with:
charts_dir: charts
cr_configfile: cr.yaml
ct_configfile: charts/cloudcost-exporter/ct.yaml
secrets:
vault_repo_secret_name: github-app
trigger-deployment-tools-update:
needs: release-chart
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Trigger chartfile version update in deployment-tools
uses: grafana/shared-workflows/actions/trigger-argo-workflow@b513eb1dfd9becfa671a41e55063cdd5c0a08031 # trigger-argo-workflow/v1.2.2
with:
namespace: platform-monitoring-cd
workflow_template: chartfile-version-update
parameters: |
chartfile_file=ksonnet/lib/cloudcost-exporter/chartfile.yaml
chart_name=grafana/cloudcost-exporter
workflow_name=cloudcost-exporter-gh-runners
workflow_namespace=platform-monitoring-cd