From 2facbf2786657fc33909e9ad36f25a6611d62b06 Mon Sep 17 00:00:00 2001 From: rainerosion Date: Fri, 14 Apr 2023 18:03:35 +0800 Subject: [PATCH] ci: auto build --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ac2ed5c --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file