File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 with :
4040 version : v3.10.0
4141
42- - name : Install python
43- uses : actions/setup-python@v4
44-
45- - name : Install Cloudsmith CLI
46- run : pip install --upgrade cloudsmith-cli
47-
4842 - name : Build and push helm package to Cloudsmith
4943 run : sh upload-to-cloudsmith.sh
5044 env :
5145 CLOUDSMITH_API_KEY : ${{ secrets.CLOUDSMITH_API_KEY }}
46+ CLOUDSMITH_USERNAME : ${{ secrets.CLOUDSMITH_USERNAME }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
1515# This is the chart version. This version number should be incremented each time you make changes
1616# to the chart and its templates, including the app version.
1717# Versions are expected to follow Semantic Versioning (https://semver.org/)
18- version : 0.2.1
18+ version : 0.2.2
1919
2020# This is the version number of the application being deployed. This version number should be
2121# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ set -e
3+
4+ if [ -z " $CLOUDSMITH_API_KEY " ] || [ -z " $CLOUDSMITH_USERNAME " ]; then
5+ echo " Error: CLOUDSMITH_API_KEY and CLOUDSMITH_USERNAME environment variables must be set."
6+ exit 1
7+ fi
8+
19cd helm
210helm dependency update
311helm package .
12+
13+ # Push to OCI repository
14+ echo " $CLOUDSMITH_API_KEY " | helm registry login helm.oci.cloudsmith.io \
15+ --username " $CLOUDSMITH_USERNAME " \
16+ --password-stdin
17+
418for i in * .tgz; do
5- [ -f " $i " ] || break
6- cloudsmith push helm --republish infisical/helm-charts " $i "
19+ [ -f " $i " ] || break
20+ helm push " $i " oci://helm.oci.cloudsmith.io/ infisical/helm-charts
721done
22+
23+ helm registry logout helm.oci.cloudsmith.io
You can’t perform that action at this time.
0 commit comments