go-check-plugins-artifacts/.drone.yml

33 lines
641 B
YAML
Raw Normal View History

2020-05-21 21:12:02 +02:00
---
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