go-check-plugins-artifacts/.drone.yml
Paul Lecuq a106ced25c
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
updated .drone.yml
2020-06-07 22:18:34 +02:00

85 lines
1.6 KiB
YAML

---
kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- git clone https://github.com/sensu/sensu-go.git .
- git checkout $DRONE_TAG
when:
event: tag
- name: create_dir
image: alpine
commands:
- mkdir bin
when:
event: tag
- name: build-linux-amd64
image: golang
commands:
- go build -o bin/go-check-plugins-$OS-$ARCH
environment:
GOOS: linux
GOARCH: amd64
OS: linux
ARCH: amd64
when:
event: tag
- name: build-linux-arm64
image: golang
commands:
- go build -o bin/go-check-plugins-$OS-$ARCH
environment:
GOOS: linux
GOARCH: arm64
OS: linux
ARCH: arm64
when:
event: tag
- name: build-linux-arm
image: golang
commands:
- go build -o bin/go-check-plugins-$OS-$ARCH
environment:
GOOS: linux
GOARCH: arm
OS: linux
ARCH: armhf
when:
event: tag
- name: build-netbsd-amd64
image: golang
commands:
- go build -o bin/go-check-plugins-$OS-$ARCH
environment:
GOOS: netbsd
GOARCH: amd64
OS: netbsd
ARCH: amd64
when:
event: tag
- name: create_archive
image: alpine
commands:
- tar -czvf go-check-plugins-$DRONE_TAG.tar.gz bin
when:
event: tag
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: "*.tar.gz"
checksum:
- sha256
- sha512
when:
event: tag