nmgsz/cloud-build-notify

By nmgsz

Updated 7 months ago

https://github.com/tvb-sz/cloud-build-notify

Image
Monitoring & Observability

4.6K

Description

google cloud build CI notify / 仅支持MarkDown格式消息推送

source file at https://github.com/tvb-sz/cloud-build-notify

DingTalk

因google cloud run机器IP并不是固定的,钉钉通知通过签名形式验签

命令原型
notify dingTalk --token=xxxx --secret=xxxx --title=xxx --content=xxxx
Cloud Build yaml
steps:
  - name: 'nmgsz/cloud-build-notify'
    args: [
      'dingTalk',
      '--token',
      '${_DING_TOKEN}',
      '--secret',
      '${_DING_SECRET}',
      '--title',
      'deploy ${_ENV} success',
      '--content',
      '## panic  \n> Account: test  \n> Msg: message  \n'
    ]
参数--token--secret示意图

image

FeiShu

命令原型
notify feiShu --token=xxxx --secret=xxxx --title=xxx --content=xxxx
Cloud Build yaml
steps:
  - name: 'nmgsz/cloud-build-notify'
    args: [
      'feiShu',
      '--token',
      '${_DING_TOKEN}',
      '--secret',
      '${_DING_SECRET}',
      '--title',
      'deploy ${_ENV} success',
      '--content',
      '## panic  \n> Account: test  \n> Msg: message  \n'
    ]
参数--token--secret示意图

image

Docker Pull Command

docker pull nmgsz/cloud-build-notify