Change the default goproxy.
This commit is contained in:
parent
c6836f3654
commit
0c825c65d4
@ -14,7 +14,7 @@ COPY . /data
|
||||
VOLUME /data/build/matter
|
||||
|
||||
# proxy
|
||||
ENV GOPROXY=https://goproxy.io
|
||||
ENV GOPROXY=https://goproxy.cn
|
||||
|
||||
# prepare the config file
|
||||
RUN go build -mod=readonly \
|
||||
|
@ -14,7 +14,7 @@
|
||||
SET VERSION_NAME=tank-3.1.4
|
||||
ECHO VERSION_NAME: %VERSION_NAME%
|
||||
@REM golang proxy
|
||||
SET GOPROXY=https://athens.azurefd.net
|
||||
SET GOPROXY=https://goproxy.cn
|
||||
ECHO GOPROXY: %GOPROXY%
|
||||
@REM assign variable like Linux GOARCH=$(go env GOARCH) eg. amd64
|
||||
FOR /f %%i IN ('go env GOARCH') DO SET GOARCH=%%i
|
||||
|
@ -12,7 +12,7 @@
|
||||
VERSION_NAME=tank-3.1.4
|
||||
echo "VERSION_NAME: ${VERSION_NAME}"
|
||||
# golang proxy
|
||||
GOPROXY=https://athens.azurefd.net
|
||||
GOPROXY=https://goproxy.cn
|
||||
echo "GOPROXY: ${GOPROXY}"
|
||||
# eg. amd64
|
||||
GOARCH=$(go env GOARCH)
|
||||
|
Loading…
Reference in New Issue
Block a user