E5SubBotForSQLite/.drone.yml
rainerosion 9a837e88cd
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build encountered an error
更新 '.drone.yml'
2021-07-29 21:56:37 +08:00

28 lines
592 B
YAML

kind: pipeline
type: docker
name: E5SubBotForSQLite
steps:
- name: gobuild
image: golang:alpine
pull: if-not-exists
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
commands:
- ls -lh
settings:
api_key:
from_secret: gitea_token
base_url: https://git.rainss.cn
files:
- main
checksum:
- md5
- sha256
when:
event: tag