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