updated .drone.yml
This commit is contained in:
parent
c100929359
commit
4fa44ce641
15
.drone.yml
15
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user