mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
add some secrets.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
06f4f77ebc
commit
b698d56d60
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user