0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-30 04:17:46 +01:00

Use goproxy.io instead of goproxy.cn (#19242)

This commit is contained in:
Lunny Xiao 2022-03-29 01:01:07 +08:00 committed by GitHub
parent 893c8938fc
commit 54961f3ac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ steps:
commands: commands:
- make lint-backend - make lint-backend
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
depends_on: [deps-backend] depends_on: [deps-backend]
@ -58,7 +58,7 @@ steps:
commands: commands:
- make golangci-lint-windows vet - make golangci-lint-windows vet
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
GOOS: windows GOOS: windows
@ -73,7 +73,7 @@ steps:
commands: commands:
- make lint-backend - make lint-backend
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
TAGS: bindata gogit sqlite sqlite_unlock_notify TAGS: bindata gogit sqlite sqlite_unlock_notify
depends_on: [deps-backend] depends_on: [deps-backend]
@ -113,7 +113,7 @@ steps:
pull: always pull: always
environment: environment:
GO111MODULE: on GO111MODULE: on
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
commands: commands:
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag - go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
depends_on: [deps-backend, checks-backend] depends_on: [deps-backend, checks-backend]
@ -125,7 +125,7 @@ steps:
image: golang:1.18 image: golang:1.18
environment: environment:
GO111MODULE: on GO111MODULE: on
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
GOOS: linux GOOS: linux
GOARCH: arm64 GOARCH: arm64
TAGS: bindata gogit TAGS: bindata gogit
@ -141,7 +141,7 @@ steps:
image: golang:1.18 image: golang:1.18
environment: environment:
GO111MODULE: on GO111MODULE: on
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
GOOS: windows GOOS: windows
GOARCH: amd64 GOARCH: amd64
TAGS: bindata gogit TAGS: bindata gogit
@ -156,7 +156,7 @@ steps:
image: golang:1.18 image: golang:1.18
environment: environment:
GO111MODULE: on GO111MODULE: on
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
GOOS: linux GOOS: linux
GOARCH: 386 GOARCH: 386
commands: commands:
@ -269,7 +269,7 @@ steps:
- ./build/test-env-check.sh - ./build/test-env-check.sh
- make backend - make backend
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
depends_on: [deps-backend, prepare-test-env] depends_on: [deps-backend, prepare-test-env]
@ -283,7 +283,7 @@ steps:
commands: commands:
- make unit-test-coverage test-check - make unit-test-coverage test-check
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
RACE_ENABLED: true RACE_ENABLED: true
GITHUB_READ_TOKEN: GITHUB_READ_TOKEN:
@ -299,7 +299,7 @@ steps:
commands: commands:
- make unit-test-coverage test-check - make unit-test-coverage test-check
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata gogit sqlite sqlite_unlock_notify TAGS: bindata gogit sqlite sqlite_unlock_notify
RACE_ENABLED: true RACE_ENABLED: true
GITHUB_READ_TOKEN: GITHUB_READ_TOKEN:
@ -315,7 +315,7 @@ steps:
commands: commands:
- make test-mysql-migration integration-test-coverage - make test-mysql-migration integration-test-coverage
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata TAGS: bindata
RACE_ENABLED: true RACE_ENABLED: true
TEST_LDAP: 1 TEST_LDAP: 1
@ -332,7 +332,7 @@ steps:
commands: commands:
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8 - timeout -s ABRT 40m make test-mysql8-migration test-mysql8
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata TAGS: bindata
RACE_ENABLED: true RACE_ENABLED: true
TEST_LDAP: 1 TEST_LDAP: 1
@ -348,7 +348,7 @@ steps:
commands: commands:
- make test-mssql-migration test-mssql - make test-mssql-migration test-mssql
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata TAGS: bindata
RACE_ENABLED: true RACE_ENABLED: true
TEST_LDAP: 1 TEST_LDAP: 1
@ -363,7 +363,7 @@ steps:
commands: commands:
- make coverage - make coverage
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata TAGS: bindata
depends_on: [unit-test, test-mysql] depends_on: [unit-test, test-mysql]
when: when:
@ -455,7 +455,7 @@ steps:
- ./build/test-env-check.sh - ./build/test-env-check.sh
- make backend - make backend
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
GOSUMDB: sum.golang.org GOSUMDB: sum.golang.org
TAGS: bindata gogit sqlite sqlite_unlock_notify TAGS: bindata gogit sqlite sqlite_unlock_notify
depends_on: [deps-backend, prepare-test-env] depends_on: [deps-backend, prepare-test-env]
@ -469,7 +469,7 @@ steps:
commands: commands:
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite - timeout -s ABRT 40m make test-sqlite-migration test-sqlite
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata gogit sqlite sqlite_unlock_notify TAGS: bindata gogit sqlite sqlite_unlock_notify
RACE_ENABLED: true RACE_ENABLED: true
TEST_TAGS: gogit sqlite sqlite_unlock_notify TEST_TAGS: gogit sqlite sqlite_unlock_notify
@ -485,7 +485,7 @@ steps:
commands: commands:
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql - timeout -s ABRT 40m make test-pgsql-migration test-pgsql
environment: environment:
GOPROXY: https://goproxy.cn GOPROXY: https://goproxy.io
TAGS: bindata gogit TAGS: bindata gogit
RACE_ENABLED: true RACE_ENABLED: true
TEST_TAGS: gogit TEST_TAGS: gogit
@ -653,7 +653,7 @@ steps:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release - make release
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
volumes: volumes:
- name: deps - name: deps
@ -771,7 +771,7 @@ steps:
- export PATH=$PATH:$GOPATH/bin - export PATH=$PATH:$GOPATH/bin
- make release - make release
environment: environment:
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not GOPROXY: https://goproxy.io # proxy.golang.org is blocked in China, this proxy is not
TAGS: bindata sqlite sqlite_unlock_notify TAGS: bindata sqlite sqlite_unlock_notify
depends_on: [fetch-tags] depends_on: [fetch-tags]
volumes: volumes:
@ -901,7 +901,7 @@ steps:
auto_tag_suffix: linux-amd64 auto_tag_suffix: linux-amd64
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -919,7 +919,7 @@ steps:
auto_tag_suffix: linux-amd64-rootless auto_tag_suffix: linux-amd64-rootless
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -964,7 +964,7 @@ steps:
tags: dev-linux-amd64 tags: dev-linux-amd64
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -982,7 +982,7 @@ steps:
tags: dev-linux-amd64-rootless tags: dev-linux-amd64-rootless
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1026,7 +1026,7 @@ steps:
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64 tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1044,7 +1044,7 @@ steps:
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64-rootless tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64-rootless
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1079,7 +1079,7 @@ steps:
repo: gitea/gitea repo: gitea/gitea
tags: linux-arm64 tags: linux-arm64
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
environment: environment:
PLUGIN_MIRROR: PLUGIN_MIRROR:
from_secret: plugin_mirror from_secret: plugin_mirror
@ -1122,7 +1122,7 @@ steps:
auto_tag_suffix: linux-arm64 auto_tag_suffix: linux-arm64
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1140,7 +1140,7 @@ steps:
auto_tag_suffix: linux-arm64-rootless auto_tag_suffix: linux-arm64-rootless
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1185,7 +1185,7 @@ steps:
tags: dev-linux-arm64 tags: dev-linux-arm64
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1203,7 +1203,7 @@ steps:
tags: dev-linux-arm64-rootless tags: dev-linux-arm64-rootless
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1247,7 +1247,7 @@ steps:
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64 tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username:
@ -1265,7 +1265,7 @@ steps:
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64-rootless tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64-rootless
repo: gitea/gitea repo: gitea/gitea
build_args: build_args:
- GOPROXY=https://goproxy.cn - GOPROXY=https://goproxy.io
password: password:
from_secret: docker_password from_secret: docker_password
username: username: