2020-09-03 14:05:06 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: hub_username
|
|
|
|
password:
|
|
|
|
from_secret: hub_password
|
|
|
|
repo:
|
|
|
|
from_secret: hub_repo
|
2020-09-03 21:49:59 +00:00
|
|
|
autotag: true
|
2020-09-03 14:05:06 +00:00
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: appleboy/drone-telegram
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: telegram_bot_token
|
|
|
|
to:
|
|
|
|
from_secret: telegram_group_id
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
|
|
|
build {{build.link}} triggerd by {{commit.link}} from {{commit.author}} succeeded
|
|
|
|
{{else}}
|
|
|
|
build {{build.link}} triggerd by {{commit.link}} from {{commit.author}} failed
|
|
|
|
{{/success}}
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|