File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ FROM ${BUILDER_IMAGE} AS builder
66ARG TARGETOS=linux
77ARG TARGETARCH=amd64
88ARG CGO_ENABLED=0
9+ ARG GOPROXY=
10+ ENV GOPROXY=${GOPROXY}
911
1012WORKDIR /workspace
1113# Copy the Go Modules manifests
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ IMAGE_REGISTRY ?= inftyai
6666IMAGE_NAME ?= llmaz
6767IMAGE_REPO := $(IMAGE_REGISTRY ) /$(IMAGE_NAME )
6868GIT_TAG ?= $(shell git describe --tags --dirty --always)
69+ GOPROXY =${GOPROXY:-""}
6970IMG ?= $(IMAGE_REPO ) :$(GIT_TAG )
7071BUILDER_IMAGE ?= golang:$(GO_VERSION )
7172KIND_CLUSTER_NAME ?= kind
@@ -176,6 +177,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
176177PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
177178.PHONY : docker-buildx
178179docker-buildx : # # Build and push docker image for the manager for cross-platform support
180+ export GOPROXY=$(GOPROXY )
179181 # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
180182 sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
181183 - $(CONTAINER_TOOL ) buildx create --name project-v3-builder
You can’t perform that action at this time.
0 commit comments