From 7c9090b24142468aeea27682e3f2f440d0b0e396 Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Wed, 31 Jul 2024 10:02:53 +0200 Subject: [PATCH 1/2] [workflow] Fix typo Signed-off-by: dd di cesare --- .github/workflows/release-helm-chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-helm-chart.yaml b/.github/workflows/release-helm-chart.yaml index 80ec273d9..7e3b5ba22 100644 --- a/.github/workflows/release-helm-chart.yaml +++ b/.github/workflows/release-helm-chart.yaml @@ -40,8 +40,8 @@ jobs: id: upload-chart with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: limitador-operator-${{ env.OPERATOR_VERSION }}.tgz - asset_name: chart-limitador-operator-${{ env.OPERATOR_VERSION }}.tgz + file: kuadrant-operator-${{ env.OPERATOR_VERSION }}.tgz + asset_name: chart-kuadrant-operator-${{ env.OPERATOR_VERSION }}.tgz tag: ${{ env.OPERATOR_TAG }} overwrite: true From 78bd93e27f177d76715d6d2d4593633131c55dcf Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Wed, 31 Jul 2024 10:03:12 +0200 Subject: [PATCH 2/2] [workflow] Add repo and build dependencies Signed-off-by: dd di cesare --- .github/workflows/release-helm-chart.yaml | 2 ++ make/helm.mk | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/release-helm-chart.yaml b/.github/workflows/release-helm-chart.yaml index 7e3b5ba22..3adafce1d 100644 --- a/.github/workflows/release-helm-chart.yaml +++ b/.github/workflows/release-helm-chart.yaml @@ -27,6 +27,8 @@ jobs: - name: Package Helm Chart run: | + make helm-add-kuadrant-repo + make helm-dependency-build make helm-package - name: Parse Tag diff --git a/make/helm.mk b/make/helm.mk index 62e542a34..aa7389beb 100644 --- a/make/helm.mk +++ b/make/helm.mk @@ -39,6 +39,10 @@ helm-dependency-build: $(HELM) ## Build the chart dependencies # Fetch and builds dependencies in Chart.yaml, updates the Chart.lock and downloads the charts .tgz $(HELM) dependency build charts/$(REPO) +.PHONY: helm-add-kuadrant-repo +helm-add-kuadrant-repo: $(HELM) ## Add the Kuadrant charts repo and force update it + $(HELM) repo add kuadrant https://kuadrant.io/helm-charts --force-update + # GitHub Token with permissions to upload to the release assets HELM_WORKFLOWS_TOKEN ?= # GitHub Release Asset Browser Download URL, it can be find in the output of the uploaded asset