33 lines
641 B
YAML
33 lines
641 B
YAML
|
---
|
||
|
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
|