Skip to content

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

fix: reorder commands in upload script for clarity

Victor Hugo dos Santosce14900098f3
diff --git a/helm-charts/upload-infisical-core-helm-cloudsmith.sh b/helm-charts/upload-infisical-core-helm-cloudsmith.sh
index e176c49ac8..3df0e653c7 100755
--- a/helm-charts/upload-infisical-core-helm-cloudsmith.sh
+++ b/helm-charts/upload-infisical-core-helm-cloudsmith.sh
@@ -1,15 +1,15 @@
#!/usr/bin/env sh
set -e
-cd "infisical-standalone-postgres"
-helm dependency update
-helm package .
-
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-standalone-postgres"
+helm dependency update
+helm package .
+
echo "$CLOUDSMITH_API_KEY" | helm registry login helm.oci.cloudsmith.io \
--username "$CLOUDSMITH_USERNAME" \
--password-stdin