Skip to content

Commit

Permalink
add proxy to docker build-arg in case of proxy env (#881)
Browse files Browse the repository at this point in the history
Signed-off-by: nunu <[email protected]>
  • Loading branch information
gnunu authored Jun 14, 2022
1 parent 7d62aa3 commit e89c227
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ ifeq (${REGION}, cn)
DOCKER_BUILD_ARGS += --build-arg GOPROXY=https://goproxy.cn --build-arg MIRROR_REPO=mirrors.aliyun.com
endif

ifneq (${http_proxy},)
DOCKER_BUILD_ARGS += --build-arg http_proxy='${http_proxy}'
endif

ifneq (${https_proxy},)
DOCKER_BUILD_ARGS += --build-arg https_proxy='${https_proxy}'
endif

.PHONY: clean all build

all: test build
Expand Down

0 comments on commit e89c227

Please sign in to comment.