Drone的企业微信通知插件
The WeChat for Work Robot notifications for Drone plugin. You can reference the doc to know how to use it.
Build
> $ sh build.sh
Usage
default
和 simple
.
使用内置模版。 目前支持2种模版: - name: notify
image: akayj/drone-wechat-robot
settings:
key:
from_secret: wechat_robot_key
msgtype: markdown.template
template_name: default # `default` 是默认值
when:
status:
- success
- failure
简单模式(simple):
默认模式(default):
使用自定义模版
- name: notify
image: akayj/drone-wechat-robot
settings:
key:
from_secret: wechat_robot_key
msgtype: markdown.template
content: "Build status: {{ .Build.Status }}" # 参考 `metadata.go`
when:
status:
- success
- failure
结果: Build status: success