ci: auto build

This commit is contained in:
rainerosion 2023-04-14 18:03:35 +08:00
parent f8581a4e11
commit 2facbf2786

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
kind: pipeline
type: docker
name: ssh-manager
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
- cd gptbing/wechatbot && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o chatgpt-arm64
- 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:
- gptbing/wechatbot/chatgpt-arm64
checksum:
- sha256
when:
event:
- push