add deploy docker image task

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-12-07 16:46:27 +08:00
parent d8835c0d4b
commit 2c1c98e54c
2 changed files with 20 additions and 3 deletions

View File

@ -14,8 +14,25 @@ pipeline:
environment: environment:
- GOPATH=/go - GOPATH=/go
commands: commands:
- make install - make dep_install
- coverage all - coverage testing
- coverage coverage
docker:
image: plugins/docker
repo: appleboy/gorush
tags: [ '${DRONE_TAG}' ]
when:
event: [ tag ]
branch: [ refs/tags/* ]
docker:
image: plugins/docker
repo: appleboy/gorush
tags: [ 'latest' ]
when:
event: [ push ]
branch: [ master ]
line: line:
image: appleboy/drone-line image: appleboy/drone-line

View File

@ -1 +1 @@
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgIyByZXN0b3JlIHRoZSBjYWNoZSBmcm9tIGFuIHNmdHAgc2VydmVyCiAgcmVzdG9yZV9jYWNoZToKICAgIGltYWdlOiBhcHBsZWJveS9kcm9uZS1zZnRwLWNhY2hlCiAgICByZXN0b3JlOiB0cnVlCiAgICBtb3VudDogWyAuZ2xpZGUsIHZlbmRvciBdCiAgICBpZ25vcmVfYnJhbmNoOiB0cnVlCgogIGJ1aWxkOgogICAgaW1hZ2U6IGFwcGxlYm95L2dvbGFuZy10ZXN0aW5nOiR7R09fVkVSU0lPTn0KICAgIGVudmlyb25tZW50OgogICAgICAtIEdPUEFUSD0vZ28KICAgIGNvbW1hbmRzOgogICAgICAtIG1ha2UgaW5zdGFsbAogICAgICAtIGNvdmVyYWdlIGFsbAoKICBsaW5lOgogICAgaW1hZ2U6IGFwcGxlYm95L2Ryb25lLWxpbmUKICAgIHB1bGw6IHRydWUKICAgIHRvOiB1MzU5NjUwZjkxOTQyN2I1MjI5MzMwYzcyMDVjNDdlZTQKICAgIHdoZW46CiAgICAgIHN0YXR1czogWyBzdWNjZXNzLCBmYWlsdXJlIF0KICAgICAgbWF0cml4OgogICAgICAgIEdPX1ZFUl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