feat: support group build. (#224)

This commit is contained in:
Bo-Yi Wu 2017-05-12 11:39:18 +08:00 committed by GitHub
parent 0a9a30c588
commit d2a9b8e31c
1 changed files with 19 additions and 14 deletions

View File

@ -37,32 +37,37 @@ pipeline:
event: [ tag ] event: [ tag ]
branch: [ refs/tags/* ] branch: [ refs/tags/* ]
docker: publish_latest:
image: plugins/docker image: plugins/docker
repo: appleboy/gorush repo: ${DRONE_REPO}
secrets: [ docker_username, docker_password ]
tags: [ '${DRONE_TAG}' ]
when:
event: [ tag ]
branch: [ refs/tags/* ]
docker:
image: plugins/docker
repo: appleboy/gorush
secrets: [ docker_username, docker_password ]
tags: [ 'latest' ] tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when: when:
event: [ push ] event: [ push ]
branch: [ master ] branch: [ master ]
local: false
github: publish_tag:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ]
group: release
when:
event: [ tag ]
branch: [ refs/tags/* ]
local: false
release_tag:
image: plugins/github-release image: plugins/github-release
secrets: [ github_token ] secrets: [ github_release_api_key ]
group: release
files: files:
- dist/release/* - dist/release/*
when: when:
event: [ tag ] event: [ tag ]
branch: [ refs/tags/* ] branch: [ refs/tags/* ]
local: false
facebook: facebook:
image: appleboy/drone-facebook image: appleboy/drone-facebook