File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 with :
4848 version : v3.10.0
4949
50- - name : Install python
51- uses : actions/setup-python@v4
52-
53- - name : Install Cloudsmith CLI
54- run : pip install --upgrade cloudsmith-cli
55-
5650 - name : Build and push helm package to CloudSmith
5751 run : cd helm-charts && sh upload-infisical-pki-issuer-chart.sh
5852 env :
5953 CLOUDSMITH_API_KEY : ${{ secrets.CLOUDSMITH_API_KEY }}
54+ CLOUDSMITH_USERNAME : ${{ secrets.CLOUDSMITH_USERNAME }}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ type: application
1313# This is the chart version. This version number should be incremented each time you make changes
1414# to the chart and its templates, including the app version.
1515# Versions are expected to follow Semantic Versioning (https://semver.org/)
16- version : 0.1.0
16+ version : 0.1.1
1717# This is the version number of the application being deployed. This version number should be
1818# incremented each time you make changes to the application. Versions are not expected to
1919# follow Semantic Versioning. They should reflect the version the application is using.
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 infisical-pki-issuer
210helm dependency update
311helm package .
12+
13+ echo " $CLOUDSMITH_API_KEY " | helm registry login helm.oci.cloudsmith.io \
14+ --username " $CLOUDSMITH_USERNAME " \
15+ --password-stdin
16+
417for i in * .tgz; do
518 [ -f " $i " ] || break
6- cloudsmith push helm --republish infisical/helm-charts " $i "
19+ helm push " $i " oci://helm.oci.cloudsmith.io/ infisical/helm-charts
720done
8- cd ..
21+
22+ helm registry logout helm.oci.cloudsmith.io
23+ cd ..
You can’t perform that action at this time.
0 commit comments