Propagate version info into salt config and use to build.

Fixes #1043.
This commit is contained in:
Joe Beda
2014-08-26 16:00:34 -07:00
parent 169e6f079a
commit 5722eba780
7 changed files with 27 additions and 5 deletions

View File

@@ -41,4 +41,8 @@ for arg; do
binaries+=("${KUBE_GO_PACKAGE}/${arg}")
done
# Note that the flags to 'go build' are duplicated in the salt build setup for
# our cluster deploy. If we add more command line options to our standard build
# we'll want to duplicate them there. As we move to distributing pre- built
# binaries we can eliminate this duplication.
go install -ldflags "-X github.com/GoogleCloudPlatform/kubernetes/pkg/version.commitFromGit '${version}'" "${binaries[@]}"