一、配置邮件报警
steps:
......
- name: notify
image: drillster/drone-email
settings:
host: SMTPserver //例如 smtp.qq.com
port: SMTPserverport //例如QQ邮箱端口465
username: xxxxxxxx@qq.com //邮箱用户名
password: xxxxxxxx //邮箱密码
from: xxxxxxxxxxx
recipients: xxxxxxxxxxxxx,xxxx //收件人
when: //执行条件
status:
- success
- changed
- failure
二、配置钉钉报警
steps:
......
- name: dingtalk
image: lddsb/drone-dingtalk-message
settings:
token: your-dingtalk-robot-access-token
type: markdown
message_color: true
message_pic: true
sha_link: true
注:其他配置参数
your-dingtalk-robot-access-token获取
添加机器人
复制webhook,获取access_token
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。