From 0edde5093519e6d05cbd5325f862e86f56656293 Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Wed, 11 Sep 2024 16:29:03 +0100 Subject: [PATCH 1/4] chore(build): add chart release to github pages --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ cr.yaml | 5 +++++ k8s/helm-chart/release_charts | 7 ------- 3 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 cr.yaml delete mode 100755 k8s/helm-chart/release_charts 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 . From 55af4585e5e6dc97e7d09e35cb88ec1f08064c45 Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Wed, 11 Sep 2024 16:31:12 +0100 Subject: [PATCH 2/4] chore(build): add chart release to github pages --- .github/workflows/release.yml | 4 +++- k8s/helm-chart/redis-commander/Chart.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58d0cdc8..ea4a79a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,9 @@ name: Release Charts on: - workflow_dispatch: + push: + branches: + - master jobs: release: 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 From d7e1a815fd74c1122f466456a02cceee9440c68f Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Wed, 11 Sep 2024 16:42:47 +0100 Subject: [PATCH 3/4] chore(build): add chart release to github pages --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea4a79a5..757bc59e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,6 @@ jobs: uses: helm/chart-releaser-action@v1.6.0 with: config: cr.yaml - charts_dir: ./k8s/helm-charts + charts_dir: k8s/helm-charts env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file From 925063fedc6713c633a6f8758c0388225ee1e7e3 Mon Sep 17 00:00:00 2001 From: Ben Donnelly Date: Wed, 11 Sep 2024 16:43:26 +0100 Subject: [PATCH 4/4] chore(build): add chart release to github pages --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 757bc59e..adb4e7f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,6 @@ jobs: uses: helm/chart-releaser-action@v1.6.0 with: config: cr.yaml - charts_dir: k8s/helm-charts + charts_dir: k8s/helm-chart env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file