Add localkube releasing jobs to makefile
Update releases to reflect v1.5.0-beta.1pull/862/head
parent
9ee1485b1a
commit
933da2c86d
13
Makefile
13
Makefile
|
@ -42,6 +42,9 @@ export GOPATH
|
||||||
PYTHON := $(shell command -v python || echo "docker run --rm -it -v $(shell pwd):/minikube -w /minikube python python")
|
PYTHON := $(shell command -v python || echo "docker run --rm -it -v $(shell pwd):/minikube -w /minikube python python")
|
||||||
BUILD_OS := $(shell uname -s)
|
BUILD_OS := $(shell uname -s)
|
||||||
|
|
||||||
|
LOCALKUBE_VERSION := $(shell $(PYTHON) hack/get_k8s_version.py --k8s-version-only 2>&1)
|
||||||
|
LOCALKUBE_BUCKET := gs://minikube/k8sReleases
|
||||||
|
|
||||||
# Set the version information for the Kubernetes servers, and build localkube statically
|
# Set the version information for the Kubernetes servers, and build localkube statically
|
||||||
K8S_VERSION_LDFLAGS := $(shell $(PYTHON) hack/get_k8s_version.py 2>&1)
|
K8S_VERSION_LDFLAGS := $(shell $(PYTHON) hack/get_k8s_version.py 2>&1)
|
||||||
MINIKUBE_LDFLAGS := -X k8s.io/minikube/pkg/version.version=$(VERSION)
|
MINIKUBE_LDFLAGS := -X k8s.io/minikube/pkg/version.version=$(VERSION)
|
||||||
|
@ -156,3 +159,13 @@ $(GOPATH)/src/$(ORG):
|
||||||
.PHONY: check-release
|
.PHONY: check-release
|
||||||
check-release:
|
check-release:
|
||||||
go test -v ./deploy/minikube/release_sanity_test.go -tags=release
|
go test -v ./deploy/minikube/release_sanity_test.go -tags=release
|
||||||
|
|
||||||
|
.PHONY: release-localkube
|
||||||
|
release-localkube: out/localkube checksum
|
||||||
|
gsutil cp out/localkube $(LOCALKUBE_BUCKET)/$(LOCALKUBE_VERSION)/localkube-linux-amd64
|
||||||
|
gsutil cp out/localkube.sha256 $(LOCALKUBE_BUCKET)/$(LOCALKUBE_VERSION)/localkube-linux-amd64.sha256
|
||||||
|
|
||||||
|
.PHONY: update-releases
|
||||||
|
update-releases:
|
||||||
|
gsutil cp deploy/minikube/k8s_releases.json gs://minikube/k8s_releases.json
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"version": "v1.5.0-alpha.2"
|
"version": "v1.5.0-beta.1"
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "v1.5.0-alpha.1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "v1.5.0-alpha.0"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "v1.4.5"
|
"version": "v1.4.5"
|
||||||
|
|
|
@ -45,6 +45,8 @@ def get_tree_state():
|
||||||
return 'gitTreeState=%s' % result
|
return 'gitTreeState=%s' % result
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
if len(sys.argv) > 1 and sys.argv[1] == "--k8s-version-only":
|
||||||
|
return get_from_godep('Comment')
|
||||||
args = [get_rev(), get_version(), get_tree_state()]
|
args = [get_rev(), get_version(), get_tree_state()]
|
||||||
return ' '.join([X_ARG_BASE + arg for arg in args])
|
return ' '.join([X_ARG_BASE + arg for arg in args])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue