2021-03-27 10:57:35 +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
|
|
|
|
tags: latest
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
- name: notify
|
|
|
|
image: appleboy/drone-telegram
|
|
|
|
settings:
|
|
|
|
token:
|
|
|
|
from_secret: telegram_bot_token
|
|
|
|
to:
|
|
|
|
from_secret: telegram_group_id
|
|
|
|
message: >
|
|
|
|
{{#success build.status}}
|
2021-03-27 11:29:48 +00:00
|
|
|
SUCCESSED! build {{build.link}} triggerd by {{commit.link}} from {{commit.author}}
|
2021-03-27 10:57:35 +00:00
|
|
|
{{else}}
|
2021-03-27 11:29:48 +00:00
|
|
|
FAILED! build {{build.link}} triggerd by {{commit.link}} from {{commit.author}}
|
2021-03-27 10:57:35 +00:00
|
|
|
{{/success}}
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|