File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ jobs:
3232 version : v3.17.3
3333
3434 - name : Prepare
35+ shell : bash
3536 run : |
3637 # OCI standard enforces lower-case paths
3738 GHCR_REPO=$(echo "ghcr.io/${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
3839 HELM_REPO=$(echo "oci://ghcr.io/${{ github.repository_owner }}/helm-charts" | tr '[:upper:]' '[:lower:]')
3940 echo "GHCR_REPO=$GHCR_REPO" >> $GITHUB_ENV
4041 echo "HELM_REPO=$HELM_REPO" >> $GITHUB_ENV
42+ echo "HELM_RELEASE_VERSION=${RELEASE_NAME:1}" >> $GITHUB_ENV
4143
4244 - name : Publish Helm charts
4345 env :
4648 cd source/deploy/helm
4749 yq -i '.image.repository = "${{ env.GHCR_REPO }}"' grafana-operator/values.yaml
4850 helm registry login -u "${RELEASE_ACTOR}" -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
49- helm package --app-version ${RELEASE_NAME} --version ${RELEASE_NAME } grafana-operator
51+ helm package --app-version ${RELEASE_NAME} --version ${HELM_RELEASE_VERSION } grafana-operator
5052
51- helm push "grafana-operator-${RELEASE_NAME }.tgz" ${{ env.HELM_REPO }}
53+ helm push "grafana-operator-${HELM_RELEASE_VERSION }.tgz" ${{ env.HELM_REPO }}
5254
5355 - name : Install CR tool
5456 run : |
8890
8991 Tag on source: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
9092 files : |
91- source/deploy/helm/grafana-operator-${{ github.ref_name }}.tgz
93+ source/deploy/helm/grafana-operator-${{ env.HELM_RELEASE_VERSION }}.tgz
9294 repository : grafana/helm-charts
9395 tag_name : grafana-operator-${{ github.ref_name }}
9496 token : ${{ env.AUTHTOKEN }}
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ catalog-push: ## Push a catalog image.
332332.PHONY : prep-release
333333prep-release : $(YQ )
334334 $(info $(M ) running $@ )
335- $(YQ ) -i ' .version="v $(VERSION)"' deploy/helm/grafana-operator/Chart.yaml
335+ $(YQ ) -i ' .version="$(VERSION)"' deploy/helm/grafana-operator/Chart.yaml
336336 $(YQ ) -i ' .appVersion="v$(VERSION)"' deploy/helm/grafana-operator/Chart.yaml
337337 $(YQ ) -i ' .params.version="v$(VERSION)"' hugo/config.yaml
338338 sed -i ' s/--version v5.*/--version v$(VERSION)/g' README.md
You can’t perform that action at this time.
0 commit comments