add some secrets.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-05-02 22:03:26 +08:00
parent 06f4f77ebc
commit b698d56d60

View File

@ -46,6 +46,7 @@ pipeline:
image: plugins/docker image: plugins/docker
repo: ${DRONE_REPO} repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ] tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ]
when: when:
event: [ tag ] event: [ tag ]
branch: [ refs/tags/* ] branch: [ refs/tags/* ]
@ -55,6 +56,7 @@ pipeline:
image: plugins/docker image: plugins/docker
repo: ${DRONE_REPO} repo: ${DRONE_REPO}
tags: [ 'latest' ] tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when: when:
event: [ push ] event: [ push ]
branch: [ master ] branch: [ master ]
@ -62,7 +64,7 @@ pipeline:
release: release:
image: plugins/github-release image: plugins/github-release
api_key: ${GITHUB_RELEASE_API_KEY} secrets: [ github_token ]
files: files:
- dist/release/* - dist/release/*
when: when: