Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improvement(helm): enhance upload script for Cloudsmith and update chart version to 1.0.5

Victor Hugo dos Santosf71157c0ec0e
diff --git a/helm-charts/infisical-gateway/Chart.yaml b/helm-charts/infisical-gateway/Chart.yaml
index e694f0ce4f..1a60a4b45f 100644
--- a/helm-charts/infisical-gateway/Chart.yaml
+++ b/helm-charts/infisical-gateway/Chart.yaml
@@ -15,10 +15,10 @@ 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: 1.0.4
+version: 1.0.5
# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
-appVersion: "1.0.4"
+appVersion: "1.0.5"
diff --git a/helm-charts/upload-gateway-cloudsmith.sh b/helm-charts/upload-gateway-cloudsmith.sh
index 0d6fd11c4b..b0a592cf37 100755
--- a/helm-charts/upload-gateway-cloudsmith.sh
+++ b/helm-charts/upload-gateway-cloudsmith.sh
@@ -1,8 +1,25 @@
-cd infisical-gateway
+#!/usr/bin/env sh
+set -e
+
+if [ -z "$CLOUDSMITH_API_KEY" ] || [ -z "$CLOUDSMITH_USERNAME" ]; then
+ echo "Error: CLOUDSMITH_API_KEY and CLOUDSMITH_USERNAME environment variables must be set."
+ exit 1
+fi
+
+cd "infisical-gateway"
helm dependency update
helm package .
+
+echo "$CLOUDSMITH_API_KEY" | helm registry login helm.oci.cloudsmith.io \
+ --username "$CLOUDSMITH_USERNAME" \
+ --password-stdin
+
for i in *.tgz; do
[ -f "$i" ] || break
cloudsmith push helm --republish infisical/helm-charts "$i"
+ helm push "$i" oci://helm.oci.cloudsmith.io/infisical/helm-charts
done
+
+helm registry logout helm.oci.cloudsmith.io
+
cd ..
\ No newline at end of file