虽然 drone plugins里面没有mattermost的plugin,但mattermost非常非常与slack可以相容,所以我们就找drone plugin for slack的来使用即可。
drone yaml 设定
kind: pipeline
name: ithome
steps:
- name: send mattermost notification
when:
branch: master
image: plugins/slack
settings:
webhook:
from_secret: my-webhook
channel: gitea
mattermost channel内显示
drone yaml 设定
kind: pipeline
name: ithome
steps:
- name: send mattermost notification
when:
branch: master
image: plugins/slack
settings:
webhook:
from_secret: my-webhook
channel: gitea
username: ithome-use
mattermost channel内显示
drone yaml 设定
kind: pipeline
name: ithome
steps:
- name: send mattermost notification
when:
branch: master
image: plugins/slack
settings:
webhook:
from_secret: my-webhook
channel: gitea
username: ithome-use
image_url: https://unsplash.it/256/256/?random
mattermost channel内显示
drone yaml 设定
kind: pipeline
name: ithome
steps:
- name: send mattermost notification
when:
branch: master
image: plugins/slack
settings:
webhook:
from_secret: my-webhook
channel: gitea
username: drone
template: >
【温馨提醒】分支: {{build.branch}},异动者: {{build.author}} 更版动作开始 {{build.link}} !!
mattermost channel内显示
今日练习是不是很简单呢?这方法可以用在当你在CI/CD有任何问题或执行成功时,可以透过这个plugin将讯息推送到你的mattermost channel很方便吧~
<<: Day22- 场地也能选? Field Selectors
延续前一天的程序码,在程序码後面加上以下三行程序码,他就会用前一天做出来的日收盘价计算出均线(预设算...
题组回顾与观念统整 前三天的练习我们深入「递回(Recursion)」的方法做了一连串的实作练习,...
今天写广度优先搜寻(DFS),与BFS相同,DFS是一种图形搜寻演算法,在解题的时候会用来爆搜的其中...
Preface 由於之後我们会解说到像是Gin搭配RDBMS或是Gin搭配Cache....等,因此...
曾有一位与我合作的一线主管问过我一个问题:「我一直在学习观察,试着找出团队系统有没有问题,但我总觉得...