File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 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}')
You can’t perform that action at this time.
0 commit comments