gptbot/.drone.yml

39 lines
996 B
YAML
Raw Normal View History

2023-04-14 18:03:35 +08:00
kind: pipeline
type: docker
2023-04-14 18:19:38 +08:00
name: wechat-bot
2023-04-14 18:03:35 +08:00
steps:
- 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
2023-04-14 18:24:00 +08:00
- cd wechatbot && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o chatgpt-arm64
2023-04-15 00:50:36 +08:00
- name: upload
image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
settings:
secret_id:
2023-04-15 14:26:34 +08:00
from_secret: cos_secret_id
2023-04-15 00:50:36 +08:00
secret_key:
from_secret: cos_secret_key
bucket_url:
from_secret: cos_bucket_url
source: wechatbot/chatgpt-arm64
target: cicd
2023-04-14 18:03:35 +08:00
- name: gitea_release
image: plugins/gitea-release
pull: if-not-exists
settings:
api_key:
from_secret: gitea_token
base_url: https://git.rainss.cn
files:
2023-04-15 00:50:36 +08:00
- wechatbot/chatgpt-arm64
2023-04-14 18:03:35 +08:00
checksum:
- sha256
when:
event:
2023-04-14 18:33:30 +08:00
- tag