From 4e6a8d6046be6a037cdc5613cfd122c64abeb289 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 5 Dec 2022 11:53:49 -0500 Subject: [PATCH] script for helm upload to cloudsmith --- helm-charts/infisical/Chart.yaml | 2 +- helm-charts/upload-to-cloudsmith.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 helm-charts/upload-to-cloudsmith.sh diff --git a/helm-charts/infisical/Chart.yaml b/helm-charts/infisical/Chart.yaml index ecef711f13..db1ef40754 100644 --- a/helm-charts/infisical/Chart.yaml +++ b/helm-charts/infisical/Chart.yaml @@ -7,7 +7,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.1.0 +version: 0.0.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 diff --git a/helm-charts/upload-to-cloudsmith.sh b/helm-charts/upload-to-cloudsmith.sh new file mode 100755 index 0000000000..a7067e0cd3 --- /dev/null +++ b/helm-charts/upload-to-cloudsmith.sh @@ -0,0 +1,11 @@ +export CLOUDSMITH_API_KEY=f5cf077b879c2ab46a49c6f1ec4199e6fba0fc0b +## Loop through each helm chart directoy and build each into helm package +for d in */ ; do + helm package $d +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