qrz/.drone.yml
Paul Lecuq faf2883ebf
Some checks failed
continuous-integration/drone/push Build is failing
updated .drone.yml
2020-04-07 23:24:30 +02:00

30 lines
598 B
YAML

---
kind: pipeline
type: docker
name: default-linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: build
image: golang
environment:
GOOS: linux
GOARCH: amd64
commands:
- mkdir dist
- 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
- name: release
image: plugins/gitea-release
settings:
base_url: https://git.paulbsd.com
api_key:
from_secret: gitea_token
files: dist/*.tar.gz
when:
event: tag