Sign inSign up

keepchen/drone-feishu

By keepchen

•Updated about 4 years ago

feishu robot notification for drone ci plugin

Image
0

3.7K

keepchen/drone-feishu repository overview

⁠drone-feishu

FeiShu robot notification for drone ci plugin

Card Style inspired guoxudongdocker/drone-dingtalk⁠

⁠QuickStart
  • docker
docker run keepchen/drone-feishu -e PLUGIN_TOKEN=your feishu webhook token \
                                 -e PLUGIN_SECRET=your feishu webhook sign secret
# Tips: configure your own environment variables in `run_test.sh` first
sh run_test.sh 

⁠Screenshot

  • success

success

  • failure

failure

⁠Test

According to your actual situation, set the environment variables in this run_test.sh file, and then run it.

⁠Pipeline Settings (.drone.yml)
- name: feishu notification
  image: keepchen/drone-feishu 
  settings:
    token:  # (required)
      from_secret: feishu_token
    secret: # (required)
      from_secret: feishu_secret
    card_title: ""
    success_img_key: ""
    failure_img_key: ""
    powered_by_img_key: ""
    powered_by_img_alt: ""
  commands:
    - env
  when:
    status: [failure, success]
⁠Environment
variablevaluedesc
PLUGIN_TOKENxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxxxx飞书的webhook token值
PLUGIN_SECRETxxxxxxxxxx飞书的签名校验secret
PLUGIN_CARD_TITLE卡片消息标题
PLUGIN_SUCCESS_IMG_KEY构建成功图片
PLUGIN_FAILURE_IMG_KEY构建失败图片
PLUGIN_POWERED_BY_IMG_KEY版权logo
PLUGIN_POWERED_BY_IMG_ALT版权logo的alt提示文字
  • how to get my pictures img_key?
    see doc⁠
  • what's the token & secret?
    robot
⁠Finally

Enjoy it. :)

Tag summary

Content type

Image

Digest

sha256:4e0a76b09…

Size

6.1 MB

Last updated

about 4 years ago

docker pull keepchen/drone-feishu