From e5ba8eb281db5ce90fe02266e0cb21f3685e696b Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 18 Feb 2023 23:50:35 -0500 Subject: [PATCH] fix upload script --- helm-charts/upload-to-cloudsmith.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/helm-charts/upload-to-cloudsmith.sh b/helm-charts/upload-to-cloudsmith.sh index 61d9692336..fb7208da07 100644 --- a/helm-charts/upload-to-cloudsmith.sh +++ b/helm-charts/upload-to-cloudsmith.sh @@ -1,11 +1,17 @@ ## Loop through each helm chart directoy and build each into helm package for d in */ ; do + cd "$d" helm dependency update - helm package $d + helm package $d + for i in *.tgz; do + [ -f "$i" ] || break + cloudsmith push helm --republish infisical/helm-charts $i + done + cd .. done -## Upload each packaged helm chart -for i in *.tgz; do - [ -f "$i" ] || break - cloudsmith push helm --republish infisical/helm-charts $i -done \ No newline at end of file +# ## Upload each packaged helm chart +# for i in *.tgz; do +# [ -f "$i" ] || break +# cloudsmith push helm --republish infisical/helm-charts $i +# done \ No newline at end of file