Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/release-helm-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.7.0
with:
yamale_version: "6.0.0"

- name: Run chart-testing (lint)
run: ct lint --config ct.yaml --charts helm-charts/infisical-pki-issuer
Expand All @@ -47,13 +49,8 @@ jobs:
with:
version: v3.10.0

- name: Install python
uses: actions/setup-python@v4

- name: Install Cloudsmith CLI
run: pip install --upgrade cloudsmith-cli

- name: Build and push helm package to CloudSmith
run: cd helm-charts && sh upload-infisical-pki-issuer-chart.sh
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
CLOUDSMITH_USERNAME: ${{ secrets.CLOUDSMITH_USERNAME }}
2 changes: 2 additions & 0 deletions .github/workflows/run-helm-chart-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.7.0
with:
yamale_version: "6.0.0"

- name: Run chart-testing (lint)
run: ct lint --config ct.yaml --charts helm-charts/infisical-pki-issuer
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/infisical-pki-issuer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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.1.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
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
19 changes: 17 additions & 2 deletions helm-charts/upload-infisical-pki-issuer-chart.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
#!/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-pki-issuer
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
cd ..

helm registry logout helm.oci.cloudsmith.io
cd ..
Loading