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

Merge pull request #2032 from wansir/update-makefile

update makefile
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# 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"
...@@ -23,8 +20,6 @@ else ...@@ -23,8 +20,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
...@@ -102,7 +97,7 @@ openapi: ...@@ -102,7 +97,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,9 +4,9 @@ set -ex ...@@ -4,9 +4,9 @@ set -ex
set -o pipefail set -o pipefail
# Default image repo # Default image repo
REPO=kubespheredev REPO=${REPO:-kubespheredev}
# Set tag to latest if no argument was given, normally was branch name # Set tag to latest if no argument was given, normally was branch name
TAG=${1:-latest} TAG=${TAG:-latest}
docker build -f build/ks-apigateway/Dockerfile -t $REPO/ks-apigateway:$TAG . docker build -f build/ks-apigateway/Dockerfile -t $REPO/ks-apigateway:$TAG .
docker build -f build/ks-apiserver/Dockerfile -t $REPO/ks-apiserver:$TAG . docker build -f build/ks-apiserver/Dockerfile -t $REPO/ks-apiserver:$TAG .
...@@ -15,6 +15,7 @@ docker build -f build/ks-controller-manager/Dockerfile -t $REPO/ks-controller-ma ...@@ -15,6 +15,7 @@ docker build -f build/ks-controller-manager/Dockerfile -t $REPO/ks-controller-ma
docker build -f build/hypersphere/Dockerfile -t $REPO/hypersphere:$TAG . docker build -f build/hypersphere/Dockerfile -t $REPO/hypersphere:$TAG .
docker build -f ./pkg/db/Dockerfile -t $REPO/ks-devops:flyway-$TAG ./pkg/db/ docker build -f ./pkg/db/Dockerfile -t $REPO/ks-devops:flyway-$TAG ./pkg/db/
# Push image to dockerhub, need to support multiple push # Push image to dockerhub, need to support multiple push
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册