This commit is contained in:
parent
fd063bce70
commit
f87f436891
17
.drone.yml
17
.drone.yml
@ -1,22 +1,31 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
type: docker
|
||||||
|
name: default-linux-amd64
|
||||||
|
|
||||||
|
platform:
|
||||||
|
arch: amd64
|
||||||
|
os: linux
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-linux-amd64
|
- name: build
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- mkdir dist
|
- mkdir dist
|
||||||
- go build -o dist/qrz-$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
|
||||||
|
- tar -czvf qrz-${DRONE_TAG}-${GOOS}-${GOARCH}.tar.gz
|
||||||
environment:
|
environment:
|
||||||
GOOS: linux
|
GOOS: linux
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
|
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: dist/*
|
files: dist/*.tar.gz
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
Loading…
Reference in New Issue
Block a user