Skip to content

Release Helm Chart

Release Helm Chart #16

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