From acac0b688818a7fe2f7035ddf09572ff5a8a6a27 Mon Sep 17 00:00:00 2001 From: hongming Date: Tue, 21 Apr 2020 12:32:06 +0800 Subject: [PATCH] update makefile Signed-off-by: hongming --- Makefile | 7 +------ hack/docker_build.sh | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 3c7da75a..64a297d9 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,6 @@ # Use of this source code is governed by a Apache license # that can be found in the LICENSE file. -# The binary to build -BIN ?= ks-apiserver - # Produce CRDs that work back to Kubernetes 1.11 (no version conversion) CRD_OPTIONS ?= "crd:trivialVersions=true" @@ -15,8 +12,6 @@ else GOBIN=$(shell go env GOBIN) endif - -IMG ?= kubespheredev/ks-apiserver OUTPUT_DIR=bin GOFLAGS=-mod=vendor define ALL_HELP_INFO @@ -88,7 +83,7 @@ openapi: go run ./tools/cmd/crd-doc-gen/main.go # Build the docker image docker-build: all - docker build . -t ${IMG} + hack/docker_build.sh # Run tests test: fmt vet diff --git a/hack/docker_build.sh b/hack/docker_build.sh index 4aa51ea1..4b613c57 100755 --- a/hack/docker_build.sh +++ b/hack/docker_build.sh @@ -4,7 +4,7 @@ set -ex set -o pipefail # push to kubespheredev with default latest tag -REPO=kubespheredev +REPO=${REPO:-kubespheredev} TAG=${TRAVIS_BRANCH:-latest} # check if build was triggered by a travis cronjob -- GitLab