2021-03-24 17:39:18 +08:00
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: E5SubBotForSQLite
|
|
|
|
|
steps:
|
2021-07-30 11:24:45 +08:00
|
|
|
- name: gobuild
|
|
|
|
|
image: golang:alpine
|
|
|
|
|
pull: if-not-exists
|
2021-07-30 11:34:27 +08:00
|
|
|
environment:
|
2021-07-30 11:38:48 +08:00
|
|
|
- GOPROXY=https://goproxy.cn
|
2021-07-30 11:26:09 +08:00
|
|
|
commands:
|
2021-07-30 11:34:27 +08:00
|
|
|
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
|
|
|
- apk update && apk add build-base
|
|
|
|
|
- CGO_ENABLED=1 go build
|
2021-07-30 11:32:26 +08:00
|
|
|
- name: gitea_release
|
2021-07-30 11:24:45 +08:00
|
|
|
image: plugins/gitea-release
|
|
|
|
|
pull: if-not-exists
|
|
|
|
|
settings:
|
2021-07-30 11:32:26 +08:00
|
|
|
api_key:
|
2021-07-30 11:27:40 +08:00
|
|
|
from_secret: gitea_token
|
2021-07-30 11:24:45 +08:00
|
|
|
base_url: https://git.rainss.cn
|
|
|
|
|
files:
|
|
|
|
|
- main
|
|
|
|
|
checksum:
|
|
|
|
|
- sha256
|
|
|
|
|
when:
|
|
|
|
|
event: tag
|