Skip to content

Commit

Permalink
script for helm upload to cloudsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Dec 5, 2022
1 parent e67620c commit 4e6a8d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm-charts/infisical/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions helm-charts/upload-to-cloudsmith.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4e6a8d6

Please sign in to comment.