update drone-docker plugin.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-11-10 10:29:48 +08:00
parent 9dd4b8db8d
commit 990178d32a

View File

@ -57,49 +57,35 @@ pipeline:
event: [ push, pull_request ] event: [ push, pull_request ]
status: [ success ] status: [ success ]
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
environment:
TAGS: netgo
GOPATH: /srv/app
commands: commands:
- make release - make release
when: when:
event: [ tag ] event: [ tag ]
branch: [ refs/tags/* ]
local: false local: false
publish_tag: publish:
image: plugins/docker image: plugins/docker
pull: true
repo: ${DRONE_REPO} repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ] default_tags: true
secrets: [ docker_username, docker_password ] secrets: [ docker_username, docker_password ]
group: release group: release
when: when:
event: [ tag ] event: [ push, tag ]
branch: [ refs/tags/* ]
local: false local: false
release_tag: release_tag:
image: plugins/github-release image: plugins/github-release
pull: true
secrets: [ github_release_api_key ] secrets: [ github_release_api_key ]
group: release group: release
files: files:
- dist/release/* - dist/release/*
when: when:
event: [ tag ] event: [ tag ]
branch: [ refs/tags/* ]
local: false local: false
facebook: facebook: