From bca7d7295a5a757fee9984c2fd9e0b83b2b50ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cs=C3=B3ti=20Istv=C3=A1n?= <109945490+csotiistvan@users.noreply.github.com> Date: Thu, 30 May 2024 13:58:15 +0200 Subject: [PATCH 1/2] Initial setup for automatic helm chart generation on release --- .github/workflows/helm-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/helm-release.yml diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml new file mode 100644 index 0000000..9e1db0d --- /dev/null +++ b/.github/workflows/helm-release.yml @@ -0,0 +1,27 @@ +name: Release Charts + +on: + release: + types: + - created + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + 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: + charts_dir: "k8s/charts" # Specify the path to your charts directory + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file From 91786ed7473ebe817340e618c5b0f904bcbcf42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cs=C3=B3ti=20Istv=C3=A1n?= <109945490+csotiistvan@users.noreply.github.com> Date: Thu, 30 May 2024 14:17:44 +0200 Subject: [PATCH 2/2] Adding manual run trigger to workflow --- .github/workflows/helm-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 9e1db0d..231fb52 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -4,6 +4,7 @@ on: release: types: - created + workflow_dispatch: # This allows the workflow to be triggered manually jobs: release: