Skip to content

Commit

Permalink
support group build (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy authored May 7, 2017
1 parent 18b163f commit b007a60
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ clone:
git:
image: plugins/git
depth: 50
tags: true

pipeline:
test:
Expand All @@ -26,6 +27,16 @@ pipeline:
when:
event: [ push, tag, pull_request ]

publish_latest:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false

release:
image: appleboy/golang-testing
pull: true
Expand All @@ -44,24 +55,16 @@ pipeline:
repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ]
group: release
when:
event: [ tag ]
branch: [ refs/tags/* ]
local: false

publish_latest:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false

release:
release_tag:
image: plugins/github-release
secrets: [ github_token ]
secrets: [ github_release_api_key ]
group: release
files:
- dist/release/*
when:
Expand Down

0 comments on commit b007a60

Please sign in to comment.