Skip to content

Commit 0033023

Browse files
Pass GOPROXY environment variable to Docker image build
Signed-off-by: Sean Schneeweiss <[email protected]>
1 parent 8a30dec commit 0033023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ generate-manifests: $(CONTROLLER_GEN) ## Generate manifests e.g. CRD, RBAC etc.
202202

203203
.PHONY: docker-build
204204
docker-build: ## Build the docker image for controller-manager
205-
docker build --pull --build-arg ARCH=$(ARCH) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CONTROLLER_IMG)-$(ARCH):$(TAG)
205+
docker build --pull --build-arg goproxy=$(GOPROXY) --build-arg ARCH=$(ARCH) --build-arg LDFLAGS="$(LDFLAGS)" . -t $(CONTROLLER_IMG)-$(ARCH):$(TAG)
206206
MANIFEST_IMG=$(CONTROLLER_IMG)-$(ARCH) MANIFEST_TAG=$(TAG) $(MAKE) set-manifest-image
207207
$(MAKE) set-manifest-pull-policy
208208

0 commit comments

Comments
 (0)