更新 '.drone.yml'

This commit is contained in:
rainerosion 2021-07-30 11:24:45 +08:00
parent 9c9a3fc36e
commit e30df5f691

View File

@ -2,25 +2,26 @@ kind: pipeline
type: docker type: docker
name: E5SubBotForSQLite name: E5SubBotForSQLite
steps: steps:
- name: gobuild - name: gobuild
image: golang:alpine image: golang:alpine
pull: if-not-exists pull: if-not-exists
environment:
- GOPROXY=https://goproxy.cn
commands: commands:
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
- apk update && apk add build-base - apk update && apk add build-base
- GOPROXY=https://goproxy.cn CGO_ENABLED=1 go build - CGO_ENABLED=1 go build
- ls -lh
- name: gitea_release - name: release
image: plugins/gitea-release image: plugins/gitea-release
pull: if-not-exists pull: if-not-exists
settings: settings:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.rainss.cn base_url: https://git.rainss.cn
files: files:
- main - main
checksum: checksum:
- md5 - sha256
- sha256 when:
when: event: tag
event: tag