From 508059a8c2f99d515b262d625437e390ed814069 Mon Sep 17 00:00:00 2001 From: rainerosion <1782832653@qq.com> Date: Fri, 30 Jul 2021 11:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3104200..f2eebf8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,10 +5,12 @@ steps: - name: gobuild image: golang:alpine pull: if-not-exists + environment: + - GOPROXY=https://goproxy.cn commands: - - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories - - apk update && apk add build-base - - GOPROXY=https://goproxy.cn CGO_ENABLED=1 go build + - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories + - apk update && apk add build-base + - CGO_ENABLED=1 go build - name: gitea_release image: plugins/gitea-release pull: if-not-exists