updated .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2020-06-07 21:57:25 +02:00
parent c100929359
commit 4fa44ce641

View File

@ -17,13 +17,13 @@ steps:
- name: create_dir
image: alpine
commands:
- mkdir build
- mkdir bin
when:
event: tag
- name: build-linux-amd64
image: golang
commands:
- go build -o build/go-check-plugins-$GOOS-$GOARCH
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
environment:
GOOS: linux
GOARCH: amd64
@ -32,7 +32,7 @@ steps:
- name: build-linux-arm64
image: golang
commands:
- go build -o build/go-check-plugins-$GOOS-$GOARCH
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
environment:
GOOS: linux
GOARCH: arm64
@ -41,7 +41,7 @@ steps:
- name: build-linux-arm
image: golang
commands:
- go build -o build/go-check-plugins-$GOOS-$GOARCH
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
environment:
GOOS: linux
GOARCH: arm
@ -50,7 +50,7 @@ steps:
- name: build-netbsd-amd64
image: golang
commands:
- go build -o build/go-check-plugins-$GOOS-$GOARCH
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
environment:
GOOS: netbsd
GOARCH: amd64
@ -59,8 +59,7 @@ steps:
- name: create_archive
image: alpine
commands:
- cd build
- tar -czvf go-check-plugins-$DRONE_TAG.tar.gz *
- tar -czvf go-check-plugins-$DRONE_TAG.tar.gz bin
when:
event: tag
- name: release
@ -69,7 +68,7 @@ steps:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: "build/*.tar.gz"
files: "*.tar.gz"
checksum:
- sha256
- sha512