更新 '.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
|
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:
|
||||||
@ -20,7 +22,6 @@ steps:
|
|||||||
files:
|
files:
|
||||||
- main
|
- main
|
||||||
checksum:
|
checksum:
|
||||||
- md5
|
|
||||||
- sha256
|
- sha256
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
Loading…
Reference in New Issue
Block a user