new syntax of drone build file
This commit is contained in:
parent
f6e592456d
commit
28ed93cc1c
29
.drone.yml
29
.drone.yml
@ -1,5 +1,13 @@
|
|||||||
pipeline:
|
kind: pipeline
|
||||||
buildci:
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: fetch
|
||||||
|
image: docker:git
|
||||||
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
|
- name: buildci
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
@ -9,23 +17,10 @@ pipeline:
|
|||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|
||||||
buildrelease:
|
- name: buildrelease
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
- go build -o dist/PiwigoDirectoryUploader cmd/PiwigoDirectoryUploader/PiwigoDirectoryUploader.go
|
- build/build-musl.sh
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
publish:
|
|
||||||
image: plugins/github-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: github_token
|
|
||||||
files: dist/*
|
|
||||||
checksum:
|
|
||||||
- md5
|
|
||||||
- sha256
|
|
||||||
- sha512
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
Loading…
Reference in New Issue
Block a user