From 8513c901aef76f9851c64cf4d12ff4432fb08a10 Mon Sep 17 00:00:00 2001 From: JayChen Date: Thu, 19 Dec 2019 11:40:56 +0800 Subject: [PATCH] add ci file --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a99c76c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build_source + image: golang:1.13 + commands: + - GOOS=linux GOARCH=amd64 go build -o linux-amd64 . + - GOOS=linux GOARCH=386 go build -o linux-386 . + - GOOS=darwin GOARCH=amd64 go build -o darwin-amd64 . + - GOOS=windows GOARCH=386 go build -o windows-386.exe . + - GOOS=windows GOARCH=amd64 go build -o windows-amd64.exe . + - name: gitea_release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + base_url: https://git.trj.tw + files: + - linux-amd64 + - linux-386 + - darwin-amd64 + - windows-386.exe + - windows-amd64.exe + checksum: + - sha256 + when: + event: tag + +trigger: + branch: + - master + event: + - tag