Skip to content

Commit 8c8df99

Browse files
committed
fix: Helm to cloudsmith
1 parent 0786033 commit 8c8df99

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/helm.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
sed -i "s/^version: .*/version: ${{ steps.vars.outputs.tag }}/" helm/Chart.yaml
4949
sed -i "s/^appVersion: .*/appVersion: \"${{ steps.vars.outputs.tag }}\"/" helm/Chart.yaml
5050
51+
- name: 🔍 Lint the chart
52+
run: helm lint helm || echo "Helm lint failed, but continuing for the hell of it..."
53+
5154
- name: 📦 Package Helm chart
5255
run: |
5356
mkdir -p .charts
@@ -57,17 +60,29 @@ jobs:
5760
run: |
5861
helm push .charts/domain-locker-${{ steps.vars.outputs.tag }}.tgz oci://ghcr.io/lissy93/domain-locker-helm
5962
60-
- name: 🚀 Push to Cloudsmith
61-
env:
62-
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
63-
CLOUDSMITH_REPO: ${{ secrets.CLOUDSMITH_REPO }}
63+
- name: 🐧 Debug Cloudsmith package path
6464
run: |
6565
curl -L -o helm-push.tar.gz https://github.com/chartmuseum/helm-push/releases/download/v0.10.3/helm-push_0.10.3_linux_amd64.tar.gz
6666
tar -xzf helm-push.tar.gz
67+
ls -R .
6768
chmod +x linux-amd64/helm-push
68-
ls -l
69+
70+
- name: ☁️ Push to Cloudsmith
71+
env:
72+
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
73+
CLOUDSMITH_REPO: ${{ secrets.CLOUDSMITH_REPO }} # Format: user/repo
74+
run: |
6975
./linux-amd64/helm-push .charts/domain-locker-${{ steps.vars.outputs.tag }}.tgz \
7076
--username $CLOUDSMITH_API_KEY \
7177
--password $CLOUDSMITH_API_KEY \
7278
https://helm.cloudsmith.io/$CLOUDSMITH_REPO/
7379
80+
- name: 📬 Publish to ArtifactHub
81+
if: ${{ secrets.ARTIFACTHUB_API_KEY != '' }}
82+
env:
83+
AH_API_KEY: ${{ secrets.ARTIFACTHUB_API_KEY }}
84+
run: |
85+
curl -X POST https://artifacthub.io/api/v1/packages/helm/sync \
86+
-H "X-API-KEY: $AH_API_KEY" \
87+
-H "Content-Type: application/json" \
88+
-d '{"repository_name":"domain-locker"}'

0 commit comments

Comments
 (0)