2019-12-22 22:58:44 +05:00
---
kind : pipeline
type : docker
name : build
steps :
- name : notify-start
image : pztrn/discordrone
settings :
webhook_id :
from_secret : discord_webhook_id
webhook_token :
from_secret : discord_webhook_secret
2020-06-20 21:12:31 +05:00
message : 'Starting building **{{repo.name}}#{{build.number}}@{{commit.sha}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
2019-12-22 22:58:44 +05:00
- name : docker
image : plugins/docker
settings :
username :
from_secret : dockerhub_user
password :
from_secret : dockerhub_password
repo : pztrn/rainloop
auto_tag : true
- name : notify-end
when :
status :
- success
- failure
image : pztrn/discordrone
settings :
webhook_id :
from_secret : discord_webhook_id
webhook_token :
from_secret : discord_webhook_secret
message : "
{{#success build.status}}
2020-06-20 21:12:31 +05:00
**{{repo.name}}#{{build.number}}@{{commit.sha}}** deployed.
2019-12-22 22:58:44 +05:00
{{ else }}
2020-06-20 21:12:31 +05:00
**{{repo.name}}#{{build.number}}@{{commit.sha}}** failed. See {{build.link}}.
2019-12-22 22:58:44 +05:00
{{/success}}"