mirror of
https://github.com/lizheming/drone-wechat.git
synced 2026-06-04 18:33:46 +08:00
45 lines
1.8 KiB
Markdown
45 lines
1.8 KiB
Markdown
<img src="wechat.svg" />
|
|
|
|
## drone-wechat
|
|
[]()
|
|
[](https://coveralls.io/github/lizheming/drone-wechat?branch=master)
|
|
[]()
|
|
[](https://microbadger.com/images/lizheming/drone-wechat)
|
|
[]()
|
|
|
|
Drone plugin for sending telegram notifications.
|
|
|
|
## Description
|
|
|
|
This drone wechat notification plugin builds base on [ServerChan](http://sc.ftqq.com). Before using you should login to [ServerChan](http://sc.ftqq.com) to get `SCKEY`. After login with Github account you can get `SCKEY` at http://sc.ftqq.com/?c=code.
|
|
|
|
Read this in other languages: [English](README.md), [简体中文](README.zh-cn.md).
|
|
|
|
## Environment
|
|
|
|
- `PLUGIN_SCKEY`: SCKEY get from [ServerChan](http://sc.ftqq.com)
|
|
- `PLUGIN_TITLE`: Notification title
|
|
- `PLUGIN_MESSAGE`: Notification body message, support markdown.
|
|
|
|
## Usage
|
|
|
|
```
|
|
docker run --rm \
|
|
-e PLUGIN_SCKEY=xxxx \
|
|
-e PLUGIN_TITLE=xxxx \
|
|
-e PLUGIN_MESSAGE=xxx \
|
|
-e DRONE_REPO_OWNER=lizheming \
|
|
-e DRONE_REPO_NAME=drone-wechat \
|
|
-e DRONE_COMMIT_SHA=e5e82b5eb3737205c25955dcc3dcacc839b7be52 \
|
|
-e DRONE_COMMIT_BRANCH=master \
|
|
-e DRONE_COMMIT_LINK=https://github.com/lizheming/drone-wechat/compare/master... \
|
|
-e DRONE_COMMIT_AUTHOR=lizheming \
|
|
-e DRONE_COMMIT_AUTHOR_EMAIL=secretlzm007@gmail.com \
|
|
-e DRONE_BUILD_NUMBER=1 \
|
|
-e DRONE_BUILD_STATUS=success \
|
|
-e DRONE_BUILD_LINK=http://github.com/lizheming/drone-wechat \
|
|
-e DRONE_TAG=1.0.0 \
|
|
-e DRONE_JOB_STARTED=1477550550 \
|
|
-e DRONE_JOB_FINISHED=1477550750 \
|
|
lizheming/drone-wechat
|
|
``` |