feat: support group build (#76)

This commit is contained in:
Bo-Yi Wu 2017-05-08 09:06:35 +08:00 committed by GitHub
parent b698d56d60
commit 356b2ae6cc

View File

@ -29,6 +29,16 @@ pipeline:
when: when:
event: [ push, tag, pull_request ] 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: release:
image: appleboy/golang-testing image: appleboy/golang-testing
pull: true pull: true
@ -47,24 +57,16 @@ pipeline:
repo: ${DRONE_REPO} repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ] tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
group: release
when: when:
event: [ tag ] event: [ tag ]
branch: [ refs/tags/* ] branch: [ refs/tags/* ]
local: false local: false
publish_latest: release_tag:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false
release:
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: