From e30df5f691907e274f47318d5da0cea06a8dde22 Mon Sep 17 00:00:00 2001 From: rainerosion <1782832653@qq.com> Date: Fri, 30 Jul 2021 11:24:45 +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 | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index f663cb0..f4feccf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,25 +2,26 @@ kind: pipeline type: docker name: E5SubBotForSQLite steps: -- name: gobuild - image: golang:alpine - pull: if-not-exists + - 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 - - ls -lh -- name: gitea_release - image: plugins/gitea-release - pull: if-not-exists - settings: - api_key: - from_secret: gitea_token - base_url: https://git.rainss.cn - files: - - main - checksum: - - md5 - - sha256 - when: - event: tag \ No newline at end of file + - 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: release + image: plugins/gitea-release + pull: if-not-exists + settings: + api_key: + from_secret: gitea_token + base_url: https://git.rainss.cn + files: + - main + checksum: + - sha256 + when: + event: tag \ No newline at end of file