未验证 提交 f7171729 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #2021 from wansir/makefile

update makefile
...@@ -2,9 +2,6 @@ ...@@ -2,9 +2,6 @@
# Use of this source code is governed by a Apache license # Use of this source code is governed by a Apache license
# that can be found in the LICENSE file. # 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) # Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true" CRD_OPTIONS ?= "crd:trivialVersions=true"
...@@ -15,8 +12,6 @@ else ...@@ -15,8 +12,6 @@ else
GOBIN=$(shell go env GOBIN) GOBIN=$(shell go env GOBIN)
endif endif
IMG ?= kubespheredev/ks-apiserver
OUTPUT_DIR=bin OUTPUT_DIR=bin
GOFLAGS=-mod=vendor GOFLAGS=-mod=vendor
define ALL_HELP_INFO define ALL_HELP_INFO
...@@ -88,7 +83,7 @@ openapi: ...@@ -88,7 +83,7 @@ openapi:
go run ./tools/cmd/crd-doc-gen/main.go go run ./tools/cmd/crd-doc-gen/main.go
# Build the docker image # Build the docker image
docker-build: all docker-build: all
docker build . -t ${IMG} hack/docker_build.sh
# Run tests # Run tests
test: fmt vet test: fmt vet
......
...@@ -4,7 +4,7 @@ set -ex ...@@ -4,7 +4,7 @@ set -ex
set -o pipefail set -o pipefail
# push to kubespheredev with default latest tag # push to kubespheredev with default latest tag
REPO=kubespheredev REPO=${REPO:-kubespheredev}
TAG=${TRAVIS_BRANCH:-latest} TAG=${TRAVIS_BRANCH:-latest}
# check if build was triggered by a travis cronjob # check if build was triggered by a travis cronjob
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册