mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
update drone-docker plugin. (#107)
* update drone-docker plugin. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * add testing Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * add testing Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * add testing Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
4d443c40f2
commit
69b3a40978
40
.drone.yml
40
.drone.yml
@ -48,6 +48,15 @@ pipeline:
|
|||||||
- make test
|
- make test
|
||||||
- make coverage
|
- make coverage
|
||||||
|
|
||||||
|
release:
|
||||||
|
image: appleboy/golang-testing
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- make release
|
||||||
|
when:
|
||||||
|
event: [ tag ]
|
||||||
|
local: false
|
||||||
|
|
||||||
codecov:
|
codecov:
|
||||||
image: robertstettner/drone-codecov
|
image: robertstettner/drone-codecov
|
||||||
secrets: [ codecov_token ]
|
secrets: [ codecov_token ]
|
||||||
@ -57,49 +66,26 @@ pipeline:
|
|||||||
event: [ push, pull_request ]
|
event: [ push, pull_request ]
|
||||||
status: [ success ]
|
status: [ success ]
|
||||||
|
|
||||||
publish_latest:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: ${DRONE_REPO}
|
|
||||||
tags: [ 'latest' ]
|
|
||||||
secrets: [ docker_username, docker_password ]
|
|
||||||
when:
|
|
||||||
event: [ push ]
|
|
||||||
branch: [ master ]
|
|
||||||
local: false
|
|
||||||
|
|
||||||
release:
|
|
||||||
image: appleboy/golang-testing
|
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
|
||||||
TAGS: netgo
|
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
|
||||||
- make release
|
|
||||||
when:
|
|
||||||
event: [ tag ]
|
|
||||||
branch: [ refs/tags/* ]
|
|
||||||
local: false
|
|
||||||
|
|
||||||
publish_tag:
|
|
||||||
image: plugins/docker
|
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user