From 9c0acb794e7a3d5b6255b6185a9bc0a623adbf61 Mon Sep 17 00:00:00 2001 From: Unlock Music Dev Date: Wed, 24 Apr 2024 17:11:40 +0800 Subject: [PATCH] build: update ci settings --- .drone.jsonnet | 6 +++--- .drone.yml | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 9f0c3b0..a2bdfee 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -24,7 +24,7 @@ local StepGoBuild(GOOS, GOARCH) = { environment: { GOOS: GOOS, GOARCH: GOARCH, - GOPROXY: "https://proxy.golang.org,https://goproxy.io,direct", + GOPROXY: "https://goproxy.io,direct", }, commands: [ 'DIST_DIR=$(mktemp -d)', @@ -71,7 +71,7 @@ local PipelineBuild(GOOS, GOARCH, RUN_TEST) = { name: 'go test', image: 'golang:1.22', environment: { - GOPROXY: "https://proxy.golang.org,https://goproxy.io,direct", + GOPROXY: "https://goproxy.io,direct", }, commands: ['go test -v ./...'], }] else [] @@ -100,7 +100,7 @@ local PipelineRelease() = { name: 'go test', image: 'golang:1.22', environment: { - GOPROXY: "https://proxy.golang.org,https://goproxy.io,direct", + GOPROXY: "https://goproxy.io,direct", }, commands: ['go test -v ./...'], }, diff --git a/.drone.yml b/.drone.yml index 960664f..535660c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ steps: - commands: - go test -v ./... environment: - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go test - commands: @@ -21,7 +21,7 @@ steps: environment: GOARCH: amd64 GOOS: linux - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build linux/amd64 - commands: @@ -57,7 +57,7 @@ steps: environment: GOARCH: amd64 GOOS: windows - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build windows/amd64 - commands: @@ -93,7 +93,7 @@ steps: environment: GOARCH: amd64 GOOS: darwin - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build darwin/amd64 - commands: @@ -123,7 +123,7 @@ steps: - commands: - go test -v ./... environment: - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go test - commands: @@ -135,7 +135,7 @@ steps: environment: GOARCH: amd64 GOOS: linux - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build linux/amd64 - commands: @@ -147,7 +147,7 @@ steps: environment: GOARCH: arm64 GOOS: linux - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build linux/arm64 - commands: @@ -159,7 +159,7 @@ steps: environment: GOARCH: "386" GOOS: linux - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build linux/386 - commands: @@ -171,7 +171,7 @@ steps: environment: GOARCH: amd64 GOOS: windows - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build windows/amd64 - commands: @@ -183,7 +183,7 @@ steps: environment: GOARCH: "386" GOOS: windows - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build windows/386 - commands: @@ -195,7 +195,7 @@ steps: environment: GOARCH: amd64 GOOS: darwin - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build darwin/amd64 - commands: @@ -207,7 +207,7 @@ steps: environment: GOARCH: arm64 GOOS: darwin - GOPROXY: https://proxy.golang.org,https://goproxy.io,direct + GOPROXY: https://goproxy.io,direct image: golang:1.22 name: go build darwin/arm64 - image: plugins/gitea-release