mirror of https://github.com/kubernetes/kops.git
Merge pull request #1581 from justinsb/fix_1057
Record git version of what we're building
This commit is contained in:
commit
8154ab7bd2
5
Makefile
5
Makefile
|
|
@ -31,6 +31,8 @@ MAKEDIR:=$(strip $(shell dirname "$(realpath $(lastword $(MAKEFILE_LIST)))"))
|
||||||
# Keep in sync with upup/models/cloudup/resources/addons/dns-controller/
|
# Keep in sync with upup/models/cloudup/resources/addons/dns-controller/
|
||||||
DNS_CONTROLLER_TAG=1.5.1
|
DNS_CONTROLLER_TAG=1.5.1
|
||||||
|
|
||||||
|
GITSHA := $(shell cd ${GOPATH_1ST}/src/k8s.io/kops; git describe --always)
|
||||||
|
|
||||||
ifndef VERSION
|
ifndef VERSION
|
||||||
# To keep both CI and end-users building from source happy,
|
# To keep both CI and end-users building from source happy,
|
||||||
# we expect that CI sets CI=1.
|
# we expect that CI sets CI=1.
|
||||||
|
|
@ -45,11 +47,10 @@ ifndef VERSION
|
||||||
ifndef CI
|
ifndef CI
|
||||||
VERSION=1.5.0-alpha4
|
VERSION=1.5.0-alpha4
|
||||||
else
|
else
|
||||||
VERSION := git-$(shell git describe --always)
|
VERSION := git-${GITSHA}
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
GITSHA := $(shell git describe --always)
|
|
||||||
|
|
||||||
# Go exports:
|
# Go exports:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue