mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-22 10:10:40 +00:00
Update .drone.yml [ci skip]
This commit is contained in:
parent
1d7c72a644
commit
609d735671
15
.drone.yml
15
.drone.yml
@ -1,5 +1,6 @@
|
|||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
|
path: src/github.com/drone-plugins/drone-github-release
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
@ -11,19 +12,11 @@ pipeline:
|
|||||||
- go test -cover -coverprofile=coverage.out
|
- go test -cover -coverprofile=coverage.out
|
||||||
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
||||||
|
|
||||||
latest:
|
publish:
|
||||||
image: docker
|
image: plugins/docker
|
||||||
repo: plugins/github-release
|
repo: plugins/github-release
|
||||||
tags: [ "latest", "1.0", "1" ]
|
tags: [ "latest", "1.0", "1" ]
|
||||||
|
secrets: [docker_username, docker_password]
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
plugin:
|
|
||||||
name: GitHub Release
|
|
||||||
desc: Publish files and artifacts to GitHub Releases
|
|
||||||
type: publish
|
|
||||||
image: plugins/github-release
|
|
||||||
labels:
|
|
||||||
- github
|
|
||||||
- release
|
|
||||||
|
Loading…
Reference in New Issue
Block a user