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

View File

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