E5SubBotForSQLite/.drone.yml

26 lines
569 B
YAML
Raw Normal View History

2021-03-24 17:39:18 +08:00
kind: pipeline
type: docker
name: E5SubBotForSQLite
steps:
2021-03-24 18:30:47 +08:00
- name: gobuild
2021-03-24 18:51:30 +08:00
image: golang:alpine
pull: if-not-exists
commands:
2021-07-29 21:56:37 +08:00
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
2021-07-29 21:03:04 +08:00
- apk update && apk add build-base
2021-07-29 20:49:36 +08:00
- GOPROXY=https://goproxy.cn CGO_ENABLED=1 go build
2021-07-29 21:49:49 +08:00
- ls -lh
2021-07-29 20:49:36 +08:00
- name: gitea_release
image: plugins/gitea-release
pull: if-not-exists
settings:
2021-07-29 20:51:51 +08:00
api_key:
from_secret: gitea_token
2021-07-29 20:49:36 +08:00
base_url: https://git.rainss.cn
files:
- main
checksum:
- md5
- sha256
when:
event: tag