koa-init/.drone.yml

38 lines
993 B
YAML
Raw Normal View History

2019-12-19 03:40:56 +00:00
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:
2019-12-19 03:44:21 +00:00
include:
- master
2019-12-19 03:40:56 +00:00
event:
2019-12-19 03:44:21 +00:00
include:
- tag