Skip to content

Commit efcc9ac

Browse files
authored
Merge pull request #740 from Daimler/fix-makefile-goproxy
🐛 Pass GOPROXY environment variable to Docker image build
2 parents cd6d1ca + 0033023 commit efcc9ac

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)