new syntax of drone build file

This commit is contained in:
Philipp Häfelfinger 2019-06-06 06:59:33 +02:00
parent f6e592456d
commit 28ed93cc1c
1 changed files with 24 additions and 29 deletions

View File

@ -1,5 +1,13 @@
pipeline:
buildci:
kind: pipeline
name: default
steps:
- name: fetch
image: docker:git
commands:
- git fetch --tags
- name: buildci
image: golang
commands:
- go get ./...
@ -9,23 +17,10 @@ pipeline:
when:
branch: master
buildrelease:
- name: buildrelease
image: golang
commands:
- go get ./...
- go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
when:
event: tag
publish:
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files: dist/*
checksum:
- md5
- sha256
- sha512
- build/build-musl.sh
when:
event: tag