From c1112e32e4a03e6f28b66b61e76533d4a279d49a Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 10 Oct 2023 11:11:18 +0300 Subject: [PATCH] github: set chart version when packaging Helm charts Signed-off-by: Markus Lehtonen --- .github/workflows/package-helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/package-helm.yaml b/.github/workflows/package-helm.yaml index e407de109..e6152247d 100644 --- a/.github/workflows/package-helm.yaml +++ b/.github/workflows/package-helm.yaml @@ -22,7 +22,7 @@ jobs: - name: Package Helm charts run: | - helm package "$CHARTS_DIR"/* + helm package --version "$GITHUB_REF_NAME" --app-version "$GITHUB_REF_NAME" "$CHARTS_DIR"/* find . -name '*.tgz' -print | while read SRC_FILE; do DEST_FILE=$(echo $SRC_FILE | sed 's/v/helm-chart-v/g') mv $SRC_FILE $DEST_FILE