akayj / drone-wechat-robot

企业微信机器人消息推送Drone插件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drone的企业微信通知插件

The WeChat for Work Robot notifications for Drone plugin. You can reference the doc to know how to use it.

Build

Docker Image CI

> $ sh build.sh

Usage

使用内置模版。 目前支持2种模版: defaultsimple.


- 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):

simple

默认模式(default):

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

About

企业微信机器人消息推送Drone插件


Languages

Language:Go 80.2%Language:Shell 7.9%Language:Smarty 6.1%Language:Dockerfile 5.8%