updated .drone.yml
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Paul 2020-05-21 21:27:58 +02:00
parent ee1466c2b2
commit 316da3abc3

View File

@ -1,7 +1,7 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: default-linux-amd64 name: default
clone: clone:
disable: true disable: true
@ -11,20 +11,64 @@ steps:
image: alpine/git image: alpine/git
commands: commands:
- git clone https://github.com/mackerelio/go-check-plugins.git . - git clone https://github.com/mackerelio/go-check-plugins.git .
when:
event: tag
- name: create_dir
image: alpine
commands:
- mkdir build
when:
event: tag
- name: build - name: build
image: golang image: golang
commands: commands:
- go build -o go-check-plugins-$DRONE_TAG-$GOOS-$GOARCH - go build -o build/go-check-plugins-$DRONE_TAG-$GOOS-$GOARCH
environment: environment:
GOOS: linux GOOS: linux
GOARCH: amd64 GOARCH: amd64
when:
event: tag
- name: build
image: golang
commands:
- go build -o build/go-check-plugins-$DRONE_TAG-$GOOS-$GOARCH
environment:
GOOS: linux
GOARCH: arm64
when:
event: tag
- name: build
image: golang
commands:
- go build -o build/go-check-plugins-$DRONE_TAG-$GOOS-$GOARCH
environment:
GOOS: linux
GOARCH: arm
when:
event: tag
- name: build
image: golang
commands:
- go build -o build/go-check-plugins-$DRONE_TAG-$GOOS-$GOARCH
environment:
GOOS: netbsd
GOARCH: amd64
when:
event: tag
- name: create_archive
image: alpine
commands:
- cd build
- tar -czvf go-check-plugins-$DRONE_TAG.tar.gz *
when:
event: tag
- name: release - name: release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
base_url: https://git.paulbsd.com base_url: https://git.paulbsd.com
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
files: "go-check-plugins-$GOOS-$GOARCH" files: "build/*"
checksum: checksum:
- sha256 - sha256
- sha512 - sha512