更新 '.drone.yml'

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

View File

@ -2,15 +2,17 @@ kind: pipeline
type: docker
name: E5SubBotForSQLite
steps:
- name: gobuild
- 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
- CGO_ENABLED=1 go build
- name: release
image: plugins/gitea-release
pull: if-not-exists
settings:
@ -20,7 +22,6 @@ steps:
files:
- main
checksum:
- md5
- sha256
when:
event: tag