File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ release: clean-release ## Builds and push container images using the latest git
528
528
@if ! [ -z " $$ (git status --porcelain)" ]; then echo " Your local git repository contains uncommitted changes, use git clean before proceeding." ; exit 1; fi
529
529
git checkout " ${RELEASE_TAG} "
530
530
# Build binaries first.
531
- $(MAKE ) release-binaries
531
+ GIT_VERSION= $( RELEASE_TAG ) $(MAKE ) release-binaries
532
532
# Set the manifest image to the production bucket.
533
533
$(MAKE ) manifest-modification REGISTRY=$(PROD_REGISTRY )
534
534
# # Build the manifests
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ version::get_version_vars() {
29
29
30
30
# stolen from k8s.io/hack/lib/version.sh
31
31
# Use git describe to find the version based on annotated tags.
32
- if GIT_VERSION=$( git describe --abbrev=14 --match " v[0-9]*" 2> /dev/null) ; then
32
+ if [[ -n ${GIT_VERSION-} ]] || GIT_VERSION=$( git describe --abbrev=14 --match " v[0-9]*" 2> /dev/null) ; then
33
33
# This translates the "git describe" to an actual semver.org
34
34
# compatible semantic version that looks something like this:
35
35
# v1.1.0-alpha.0.6+84c76d1142ea4d
You can’t perform that action at this time.
0 commit comments