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