Skip to content

Commit d1debdb

Browse files
author
Your Name
committed
add chart to publish
1 parent 518cdc0 commit d1debdb

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/publish-helm-charts.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,22 @@ jobs:
8686
8787
# Verify the pushed chart
8888
echo "Verifying the pushed chart..."
89-
helm pull oci://ghcr.io/${{ github.repository_owner }}/helm-charts/opencloud-dev --version $(helm show chart charts/opencloud-dev | grep version | awk '{print $2}')
89+
helm pull oci://ghcr.io/${{ github.repository_owner }}/helm-charts/opencloud-dev --version $(helm show chart charts/opencloud-dev | grep version | awk '{print $2}')
90+
91+
- name: Package and push OpenCloud Full chart
92+
run: |
93+
# Update Chart.yaml version if we have a tag
94+
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
95+
echo "Updating chart version to ${{ env.CHARTS_VERSION }}"
96+
sed -i "s/^version:.*/version: ${{ env.CHARTS_VERSION }}/" charts/opencloud-full/Chart.yaml
97+
fi
98+
99+
# Package Helm chart
100+
helm package charts/opencloud-full
101+
102+
# Push to GHCR
103+
helm push opencloud-full-*.tgz oci://ghcr.io/${{ github.repository_owner }}/helm-charts/
104+
105+
# Verify the pushed chart
106+
echo "Verifying the pushed chart..."
107+
helm pull oci://ghcr.io/${{ github.repository_owner }}/helm-charts/opencloud-full --version $(helm show chart charts/opencloud-full | grep version | awk '{print $2}')

0 commit comments

Comments
 (0)