diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..adb4e7f5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Release Charts + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + with: + config: cr.yaml + charts_dir: k8s/helm-chart + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file diff --git a/README.md b/README.md index 18709eac..f798875c 100644 --- a/README.md +++ b/README.md @@ -361,11 +361,11 @@ known issues with Kubernetes: ## Helm chart You can install the application on any Kubernetes cluster using Helm. -There is no helm repo available currently, therefore local checkout of helm sources inside -this repo is needed: +There is a helm repo available, and can be installed via: ```sh -helm -n myspace install redis-web-ui ./k8s/helm-chart/redis-commander +helm repo add redis-commander https://joeferner.github.io/redis-commander/ +helm install redis-commander/redis-commander ``` More [Documentation](k8s/helm-chart/README.md) about this Helm chart and its values. diff --git a/cr.yaml b/cr.yaml new file mode 100644 index 00000000..64fe8899 --- /dev/null +++ b/cr.yaml @@ -0,0 +1,5 @@ +sign: false + +# Enable automatic generation of release notes using GitHubs release notes generator. +# see: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes +generate-release-notes: true \ No newline at end of file diff --git a/k8s/helm-chart/redis-commander/Chart.yaml b/k8s/helm-chart/redis-commander/Chart.yaml index 747d3407..8a0da2c1 100644 --- a/k8s/helm-chart/redis-commander/Chart.yaml +++ b/k8s/helm-chart/redis-commander/Chart.yaml @@ -11,7 +11,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.6.0 +version: 0.6.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/k8s/helm-chart/release_charts b/k8s/helm-chart/release_charts deleted file mode 100755 index 812b40ae..00000000 --- a/k8s/helm-chart/release_charts +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -# author Abdennour Toumi (https://github.com/abdennour) - -dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"; -cd "${dir}" || exit -helm package redis-commander -helm repo index .