added .drone.yml
Some checks failed
continuous-integration/drone/tag Build is failing

This commit is contained in:
Paul 2020-05-21 21:12:02 +02:00
commit 994066c09b

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
---
kind: pipeline
type: docker
name: default-linux-amd64
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- git clone https://github.com/mackerelio/go-check-plugins.git
- name: build
image: golang
commands:
- go build -o go-check-plugins-$GOOS-$GOARCH
environment:
GOOS: linux
GOARCH: amd64
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: "go-check-plugins-$GOOS-$GOARCH"
checksum:
- sha256
- sha512
when:
event: tag