diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..58d0cdc8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Release Charts + +on: + workflow_dispatch: + +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-charts + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file 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/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 .