diff --git a/.ci/setenvconfig b/.ci/setenvconfig index 2390d81bfe..f617972835 100755 --- a/.ci/setenvconfig +++ b/.ci/setenvconfig @@ -686,7 +686,7 @@ GO_TAGS=release export LICENSE_PUBKEY=${PROJECT_PATH}/.ci/license.key SNAPSHOT=false -IMG_VERSION=$TAG_NAME +IMG_VERSION=${TAG_NAME#"v"} ENV fi diff --git a/hack/manifest-gen/manifest-gen.sh b/hack/manifest-gen/manifest-gen.sh index 078f70489a..448d333062 100755 --- a/hack/manifest-gen/manifest-gen.sh +++ b/hack/manifest-gen/manifest-gen.sh @@ -29,11 +29,11 @@ update_chart() { kubectl kustomize "${SCRIPT_DIR}/crd_patches/v1" > "${CRD_CHART_DIR}/templates/all-crds.yaml" # Update the versions in the main chart - "$SED" -E "s#appVersion: [0-9]+\.[0-9]+\.[0-9]+.*#appVersion: $VERSION#" "${CHART_DIR}/Chart.yaml" + "$SED" -E "s#appVersion: [0-9]+\.[0-9]+\.[0-9]+.*#appVersion: ${VERSION}#" "${CHART_DIR}/Chart.yaml" "$SED" -E "s#version: [0-9]+\.[0-9]+\.[0-9]+.*#version: $VERSION#" "${CHART_DIR}/Chart.yaml" # Update the versions in the CRD chart - "$SED" -E "s#appVersion: [0-9]+\.[0-9]+\.[0-9]+.*#appVersion: $VERSION#" "${CRD_CHART_DIR}/Chart.yaml" + "$SED" -E "s#appVersion: [0-9]+\.[0-9]+\.[0-9]+.*#appVersion: ${VERSION}#" "${CRD_CHART_DIR}/Chart.yaml" "$SED" -E "s#version: [0-9]+\.[0-9]+\.[0-9]+.*#version: $VERSION#" "${CRD_CHART_DIR}/Chart.yaml" }