diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91dda21..be5c880 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,3 +33,23 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + helmreleaser: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Publish Helm chart + uses: stefanprodan/helm-gh-pages@v1.7.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + charts_dir: contrib/helm + branch: gh-pages + target_dir: charts + app_version: ${{ github.ref_name }} + chart_version: ${{ github.ref_name }} diff --git a/contrib/helm/Chart.yaml b/contrib/helm/Chart.yaml deleted file mode 100644 index a86f202..0000000 --- a/contrib/helm/Chart.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -appVersion: 2.0.2 -description: A Helm chart for the calert which uses Alertmanager webhook receiver to receive alerts payload, and pushes this data to Google Chat webhook endpoint. -name: calert -version: 2.0.3 -icon: https://github.com/mr-karan/calert/raw/master/images/logo.png -home: https://github.com/mr-karan/calert -sources: -- https://github.com/mr-karan/calert -maintainers: -- name: Karan Sharma - email: hello@mrkaran.dev diff --git a/contrib/helm/.helmignore b/contrib/helm/calert/.helmignore similarity index 100% rename from contrib/helm/.helmignore rename to contrib/helm/calert/.helmignore diff --git a/contrib/helm/calert/Chart.yaml b/contrib/helm/calert/Chart.yaml new file mode 100644 index 0000000..14610cc --- /dev/null +++ b/contrib/helm/calert/Chart.yaml @@ -0,0 +1,20 @@ +apiVersion: v2 +name: calert +version: 0.0.0-dev +description: A Helm chart for the calert which uses Alertmanager webhook receiver to receive alerts payload, and pushes this data to Google Chat webhook endpoint. +type: application +keywords: + - monitoring + - alerting + - prometheus + - alertmanager + - alertmanager-webhook + - google-chat +home: https://github.com/mr-karan/calert +sources: + - https://github.com/mr-karan/calert +maintainers: + - name: Karan Sharma + email: hello@mrkaran.dev + url: https://github.com/mr-karan +appVersion: 0.0.0-dev diff --git a/contrib/helm/README.md b/contrib/helm/calert/README.md similarity index 98% rename from contrib/helm/README.md rename to contrib/helm/calert/README.md index 7392be3..9b8b7a8 100644 --- a/contrib/helm/README.md +++ b/contrib/helm/calert/README.md @@ -29,7 +29,7 @@ config: The following tables lists the configurable parameters of the chart and their default values. -Change the values according to the need of the environment in ``contrib/helm/values.yaml`` file. +Change the values according to the need of the environment in ``contrib/helm/calert/values.yaml`` file. | Key | Type | Default | Description | |-----|------|---------|-------------| diff --git a/contrib/helm/templates/NOTES.txt b/contrib/helm/calert/templates/NOTES.txt similarity index 100% rename from contrib/helm/templates/NOTES.txt rename to contrib/helm/calert/templates/NOTES.txt diff --git a/contrib/helm/templates/_helpers.tpl b/contrib/helm/calert/templates/_helpers.tpl similarity index 100% rename from contrib/helm/templates/_helpers.tpl rename to contrib/helm/calert/templates/_helpers.tpl diff --git a/contrib/helm/templates/configmap.yaml b/contrib/helm/calert/templates/configmap.yaml similarity index 100% rename from contrib/helm/templates/configmap.yaml rename to contrib/helm/calert/templates/configmap.yaml diff --git a/contrib/helm/templates/deployment.yaml b/contrib/helm/calert/templates/deployment.yaml similarity index 100% rename from contrib/helm/templates/deployment.yaml rename to contrib/helm/calert/templates/deployment.yaml diff --git a/contrib/helm/templates/service.yaml b/contrib/helm/calert/templates/service.yaml similarity index 100% rename from contrib/helm/templates/service.yaml rename to contrib/helm/calert/templates/service.yaml diff --git a/contrib/helm/values.yaml b/contrib/helm/calert/values.yaml similarity index 100% rename from contrib/helm/values.yaml rename to contrib/helm/calert/values.yaml