更新 '.drone.yml'
This commit is contained in:
parent
9c9a3fc36e
commit
e30df5f691
11
.drone.yml
11
.drone.yml
@ -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
|
||||
Loading…
Reference in New Issue
Block a user