From c1243665403708965b7ff8268814bae9c6e471fe Mon Sep 17 00:00:00 2001 From: luming Date: Tue, 19 Oct 2021 19:53:51 +0800 Subject: [PATCH] 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..d792ac2 --- /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 + - go build + + - 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: + - main + checksum: + - sha256 + when: + branch: + - master \ No newline at end of file