Skip to content

Commit

Permalink
revert change to makefile
Browse files Browse the repository at this point in the history
Signed-off-by: gang.liu <[email protected]>
  • Loading branch information
izturn committed Aug 16, 2023
1 parent b9b9619 commit 9be1a98
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ BUILD_CGO_ENABLED ?= 0
BUILD_GOPRIVATE ?= ""

# Go module mirror to use.
#BUILD_GOPROXY ?= https://proxy.golang.org
BUILD_GOPROXY ?= https://goproxy.cn
BUILD_GOPROXY ?= https://proxy.golang.org


# Checksum db to use.
BUILD_GOSUMDB ?= sum.golang.org
Expand Down Expand Up @@ -125,7 +125,7 @@ race:
download: ## Download Go modules
go mod download

multiarch-build2: ## Build and optionally push a multi-arch Contour container image to the Docker registry
multiarch-build: ## Build and optionally push a multi-arch Contour container image to the Docker registry
@mkdir -p $(shell pwd)/image
docker buildx build $(IMAGE_RESULT_FLAG) \
--platform $(IMAGE_PLATFORMS) \
Expand All @@ -143,25 +143,6 @@ multiarch-build2: ## Build and optionally push a multi-arch Contour container im
$(IMAGE_TAGS) \
$(shell pwd)

multiarch-build: ## Build and optionally push a multi-arch Contour container image to the Docker registry
docker buildx build \
--platform $(IMAGE_PLATFORMS) \
--build-arg "BUILD_GOPRIVATE=$(BUILD_GOPRIVATE)" \
--build-arg "BUILD_GOPROXY=$(BUILD_GOPROXY)" \
--build-arg "BUILD_GOSUMDB=$(BUILD_GOSUMDB)" \
--build-arg "BUILD_BASE_IMAGE=$(BUILD_BASE_IMAGE)" \
--build-arg "BUILD_VERSION=$(BUILD_VERSION)" \
--build-arg "BUILD_BRANCH=$(BUILD_BRANCH)" \
--build-arg "BUILD_SHA=$(BUILD_SHA)" \
--build-arg "BUILD_CGO_ENABLED=$(BUILD_CGO_ENABLED)" \
--build-arg "BUILD_EXTRA_GO_LDFLAGS=$(BUILD_EXTRA_GO_LDFLAGS)" \
--build-arg "BUILD_GOEXPERIMENT=$(BUILD_GOEXPERIMENT)" \
$(DOCKER_BUILD_LABELS) \
-t release-ci.daocloud.io/skoala/contour:v1.25.2-with-envoy-base-id \
$(shell pwd) \
--push


container: ## Build the Contour container image
docker build \
--build-arg "BUILD_GOPRIVATE=$(BUILD_GOPRIVATE)" \
Expand Down Expand Up @@ -247,7 +228,7 @@ lint-flags:

.PHONY: generate
generate: ## Re-generate generated code and documentation
generate: generate-rbac generate-crd-deepcopy generate-crd-yaml generate-deployment generate-api-docs generate-metrics-docs generate-uml generate-go
generate: generate-rbac generate-crd-deepcopy generate-crd-yaml generate-gateway-yaml generate-deployment generate-api-docs generate-metrics-docs generate-uml generate-go

.PHONY: generate-rbac
generate-rbac:
Expand Down

0 comments on commit 9be1a98

Please sign in to comment.