This commit is contained in:
parent
bf73b1aa71
commit
5c685ae255
@ -10,16 +10,14 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
|
environment:
|
||||||
|
GOOS: linux
|
||||||
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- mkdir dist
|
- mkdir dist
|
||||||
- go build -o dist/qrz-${DRONE_TAG}-${GOOS}-${GOARCH} -mod=vendor -ldflags="-s -w" cmd/qrz/*.go
|
- go build -o dist/qrz-${DRONE_TAG}-${GOOS}-${GOARCH} -mod=vendor -ldflags="-s -w" cmd/qrz/*.go
|
||||||
- cd dist
|
- cd dist
|
||||||
- tar -czvf qrz-${DRONE_TAG}-${GOOS}-${GOARCH}.tar.gz
|
- tar -czvf qrz-${DRONE_TAG}-${GOOS}-${GOARCH}.tar.gz
|
||||||
environment:
|
|
||||||
- GOOS=linux
|
|
||||||
- GOARCH=amd64
|
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
- name: release
|
- name: release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
|
Loading…
Reference in New Issue
Block a user