Aleksander Cynarski
9d506ca633
All checks were successful
continuous-integration/drone/push Build is passing
36 lines
735 B
YAML
36 lines
735 B
YAML
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}}
|
|
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
|