diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18e9088..57b5275 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -169,10 +169,11 @@ jobs: - name: Package Helm chart run: | - helm package opensource + new_version=${{ needs.determine-version.outputs.new_version }} + sed -i.bak 's/^version:.*/version: '"$new_version"'/g' ${{ env.CHART_PATH }}/Chart.yaml + helm package ${{ env.CHART_PATH }} - name: Push Helm chart to Docker Hub run: | - echo "Pushing Helm chart to Docker Hub with version ${{ needs.determine-version.outputs.new_version }}" - echo "pushing with version '${{ needs.determine-version.outputs.new_version }}'" - helm push $(ls *.tgz) oci://registry-1.docker.io/bouyguestelecomcharts --version ${{ needs.determine-version.outputs.new_version }} + new_version=${{ needs.determine-version.outputs.new_version }} + helm push $(ls *.tgz) oci://registry-1.docker.io/bouyguestelecomcharts --version "$new_version"