This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch release-2.3.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-2.3.x by this push:
new 2ba12225e fix(ci): merge helm with older index
2ba12225e is described below
commit 2ba12225e9153d0f3e915edcd2b1b3ee2a6f3d5d
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Wed Jun 5 15:08:09 2024 +0200
fix(ci): merge helm with older index
Closes #5575
---
script/release_helm.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/script/release_helm.sh b/script/release_helm.sh
index a028cd1a9..81850aec2 100755
--- a/script/release_helm.sh
+++ b/script/release_helm.sh
@@ -19,8 +19,9 @@ set -e
location=$(dirname $0)
rootdir=$(realpath $location/..)
-targetdir=$rootdir/docs/charts
version=$1
+targetdir=$rootdir/docs/charts/$version
+helm_index=$rootdir/docs/charts/index.yaml
mkdir -p $targetdir
@@ -28,4 +29,7 @@ cd $rootdir/helm
helm package ./camel-k --version $version
mv camel-k-*.tgz $targetdir/
-helm repo index $targetdir --url https://apache.github.io/camel-k/charts/
+helm repo index $targetdir --url https://apache.github.io/camel-k/charts/
--merge $helm_index
+# Required to prevent https://github.com/helm/helm/issues/7363
+mv $targetdir/* $targetdir/../.
+rm -rf $targetdir