From b8574a540ec1b8d2aee120a515075ba2aa309a3d Mon Sep 17 00:00:00 2001 From: Zadkiel Aharonian Date: Wed, 24 Aug 2022 16:03:02 +0200 Subject: [PATCH] chore: release calert helm charts --- .github/workflows/release.yml | 20 +++++++++++++++++++ contrib/helm/Chart.yaml | 12 ----------- contrib/helm/{ => calert}/.helmignore | 0 contrib/helm/calert/Chart.yaml | 20 +++++++++++++++++++ contrib/helm/{ => calert}/README.md | 2 +- contrib/helm/{ => calert}/templates/NOTES.txt | 0 .../helm/{ => calert}/templates/_helpers.tpl | 0 .../{ => calert}/templates/configmap.yaml | 0 .../{ => calert}/templates/deployment.yaml | 0 .../helm/{ => calert}/templates/service.yaml | 0 contrib/helm/{ => calert}/values.yaml | 0 11 files changed, 41 insertions(+), 13 deletions(-) delete mode 100644 contrib/helm/Chart.yaml rename contrib/helm/{ => calert}/.helmignore (100%) create mode 100644 contrib/helm/calert/Chart.yaml rename contrib/helm/{ => calert}/README.md (98%) rename contrib/helm/{ => calert}/templates/NOTES.txt (100%) rename contrib/helm/{ => calert}/templates/_helpers.tpl (100%) rename contrib/helm/{ => calert}/templates/configmap.yaml (100%) rename contrib/helm/{ => calert}/templates/deployment.yaml (100%) rename contrib/helm/{ => calert}/templates/service.yaml (100%) rename contrib/helm/{ => calert}/values.yaml (100%) 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