From ed6b446d55c860efd30863aa70beb55256a9c9cd Mon Sep 17 00:00:00 2001 From: Fred Heinecke Date: Thu, 30 May 2024 13:19:57 -0500 Subject: [PATCH] Add debug logging --- .github/workflows/cd.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c5ce87e..fe31c5b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -107,8 +107,13 @@ jobs: ;; esac + # Trim `v` prefix if exists + CHART_VERSION=${CHART_VERSION#v} + IMAGE_VERSION=${IMAGE_VERSION#v} + # Build/package the chart - helm package . --version "${CHART_VERSION#v}" --app-version "${IMAGE_VERSION#v}" + echo "Setting chart version to ${CHART_VERSION and image version to ${IMAGE_VERSION}}" + helm package . --version "${CHART_VERSION}" --app-version "${IMAGE_VERSION}" ARTIFACT_NAME=$(find . -name '*.tgz' -exec basename {} \; | head -n 1) # Publish the chart