File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ ENV KUBE_CROSSPLATFORMS \
45
45
COPY --from=go-source /usr/local/go /usr/local/go
46
46
ENV PATH=/usr/local/go/bin:$PATH
47
47
ENV GOROOT=/usr/local/go
48
+ ENV GOLANG_VERSION=${GO_VERSION}
49
+ ENV GOTOOLCHAIN=local
50
+ ENV GOPATH=/usr/local/go
51
+
48
52
# Pre-compile the standard go library when cross-compiling. This is much easier now when we have go1.5+
49
53
RUN targetArch=$(echo $TARGETPLATFORM | cut -f2 -d '/' ) \
50
54
&& if [ ${targetArch} = "amd64" ]; then \
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ COPY --from=go-source /usr/local/go /usr/local/go
29
29
# Set up Go environment
30
30
ENV PATH=/usr/local/go/bin:$PATH
31
31
ENV GOROOT=/usr/local/go
32
+ ENV GOLANG_VERSION=${GO_VERSION}
33
+ ENV GOTOOLCHAIN=local
34
+ ENV GOPATH=/usr/local/go
32
35
33
36
# Copy the sources
34
37
COPY ./go-runner.go ./
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ COPY --from=go-source /usr/local/go /usr/local/go
26
26
# Set up Go environment
27
27
ENV PATH=/usr/local/go/bin:$PATH
28
28
ENV GOROOT=/usr/local/go
29
+ ENV GOLANG_VERSION=${GO_VERSION}
30
+ ENV GOTOOLCHAIN=local
31
+ ENV GOPATH=/usr/local/go
29
32
30
33
# Install required packages for adding Google Cloud SDK repository
31
34
RUN apt-get update && \
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ COPY --from=go-source /usr/local/go /go
29
29
# Set up Go environment
30
30
ENV PATH=/go/bin:$PATH
31
31
ENV GOROOT=/go
32
+ ENV GOLANG_VERSION=${GO_VERSION_TOOLING}
33
+ ENV GOTOOLCHAIN=local
34
+ ENV GOPATH=/go
32
35
33
36
WORKDIR /go/src/k8s.io/release
34
37
You can’t perform that action at this time.
0 commit comments