From fa0225979486ed96ea81668bd7325f56f58246eb Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 7 Apr 2020 00:20:03 +0200 Subject: [PATCH] updated .drone.yml --- .drone.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 04f6c14..cd7ec10 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,20 @@ kind: pipeline name: default steps: - - name: build + - name: build-linux-amd64 image: golang commands: - - make + - mkdir dist + - go build -o dist/qrz-$GOOS-$GOARCH -mod=vendor -ldflags="-s -w" cmd/qrz/*.go + environment: + GOOS: linux + GOARCH: amd64 + - name: release + image: plugins/gitea-release + settings: + base_url: https://git.paulbsd.com + api_key: + from_secret: gitea_token + files: dist/* +# when: +# event: tag