File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1616
1717FROM golang:1.24 AS builder
1818
19+ ARG GOPROXY
20+ ENV GOPROXY=$GOPROXY
21+
1922WORKDIR /workspace
2023ADD ./go.mod ./
2124ADD ./go.sum ./
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ GO_PLUGIN_LDFLAGS ?= $(PLUGIN_VERSION_LDFLAGS)
5050GO_TAGS ?= -tags no_openssl
5151GO_GCFLAGS ?=
5252export GOPATH? =$(shell go env GOPATH)
53+ GOPROXY ?=
5354
5455# Go tools
5556GO = go
@@ -152,7 +153,7 @@ test-coverage: | plugins-coverage envtest gocovmerge gcov2lcov ## Run coverage t
152153# Container image
153154.PHONY : image
154155image : ; $(info Building Docker image...) # # Build conatiner image
155- $(IMAGE_BUILDER ) build -t $(TAG ) -f $(DOCKERFILE ) $(CURDIR ) $(IMAGE_BUILD_OPTS )
156+ $(IMAGE_BUILDER ) build -t $(TAG ) -f $(DOCKERFILE ) $(CURDIR ) -build-arg GOPROXY= " $( GOPROXY ) " $(IMAGE_BUILD_OPTS )
156157
157158# Misc
158159
You can’t perform that action at this time.
0 commit comments