File tree 2 files changed +4
-0
lines changed
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
6
6
ARG TARGETOS=linux
7
7
ARG TARGETARCH=amd64
8
8
ARG CGO_ENABLED=0
9
+ ARG GOPROXY=
10
+ ENV GOPROXY=${GOPROXY}
9
11
10
12
WORKDIR /workspace
11
13
# Copy the Go Modules manifests
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ IMAGE_REGISTRY ?= inftyai
66
66
IMAGE_NAME ?= llmaz
67
67
IMAGE_REPO := $(IMAGE_REGISTRY ) /$(IMAGE_NAME )
68
68
GIT_TAG ?= $(shell git describe --tags --dirty --always)
69
+ GOPROXY =${GOPROXY:-""}
69
70
IMG ?= $(IMAGE_REPO ) :$(GIT_TAG )
70
71
BUILDER_IMAGE ?= golang:$(GO_VERSION )
71
72
KIND_CLUSTER_NAME ?= kind
@@ -176,6 +177,7 @@ run: manifests generate fmt vet ## Run a controller from your host.
176
177
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
177
178
.PHONY : docker-buildx
178
179
docker-buildx : # # Build and push docker image for the manager for cross-platform support
180
+ export GOPROXY=$(GOPROXY )
179
181
# copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
180
182
sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
181
183
- $(CONTAINER_TOOL ) buildx create --name project-v3-builder
You can’t perform that action at this time.
0 commit comments