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
|
- name: create_dir
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- mkdir build
|
- mkdir bin
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
- name: build-linux-amd64
|
- name: build-linux-amd64
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build -o build/go-check-plugins-$GOOS-$GOARCH
|
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
@ -32,7 +32,7 @@ steps:
|
|||||||
- name: build-linux-arm64
|
- name: build-linux-arm64
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build -o build/go-check-plugins-$GOOS-$GOARCH
|
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: arm64
|
GOARCH: arm64
|
||||||
@ -41,7 +41,7 @@ steps:
|
|||||||
- name: build-linux-arm
|
- name: build-linux-arm
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build -o build/go-check-plugins-$GOOS-$GOARCH
|
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: arm
|
GOARCH: arm
|
||||||
@ -50,7 +50,7 @@ steps:
|
|||||||
- name: build-netbsd-amd64
|
- name: build-netbsd-amd64
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build -o build/go-check-plugins-$GOOS-$GOARCH
|
- go build -o bin/go-check-plugins-$GOOS-$GOARCH
|
||||||
environment:
|
environment:
|
||||||
GOOS: netbsd
|
GOOS: netbsd
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
@ -59,8 +59,7 @@ steps:
|
|||||||
- name: create_archive
|
- name: create_archive
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- cd build
|
- tar -czvf go-check-plugins-$DRONE_TAG.tar.gz bin
|
||||||
- tar -czvf go-check-plugins-$DRONE_TAG.tar.gz *
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
- name: release
|
- name: release
|
||||||
@ -69,7 +68,7 @@ steps:
|
|||||||
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: "build/*.tar.gz"
|
files: "*.tar.gz"
|
||||||
checksum:
|
checksum:
|
||||||
- sha256
|
- sha256
|
||||||
- sha512
|
- sha512
|
||||||
|
Loading…
Reference in New Issue
Block a user