add ci file
This commit is contained in:
parent
cf4e037ea3
commit
8513c901ae
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user