Skip to content

Commit

Permalink
Ignore tags which are added by standardci during the build
Browse files Browse the repository at this point in the history
This should be reverted later on. We only want to use tags for releases,
therefore the script worked as intedend.
rmohr committed Jul 19, 2018
1 parent f31642d commit 5898572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/version.sh
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ function kubevirt::version::get_version_vars() {
fi

# Use git describe to find the version based on tags.
if [[ -n ${KUBEVIRT_GIT_VERSION-} ]] || KUBEVIRT_GIT_VERSION=$("${git[@]}" describe --tags --abbrev=14 "${KUBEVIRT_GIT_COMMIT}^{commit}" 2>/dev/null); then
if [[ -n ${KUBEVIRT_GIT_VERSION-} ]] || KUBEVIRT_GIT_VERSION=$("${git[@]}" describe --match='v[0-9]*' --tags --abbrev=14 "${KUBEVIRT_GIT_COMMIT}^{commit}" 2>/dev/null); then
# This translates the "git describe" to an actual semver.org
# compatible semantic version that looks something like this:
# v1.1.0-alpha.0.6+84c76d1142ea4d

0 comments on commit 5898572

Please sign in to comment.