mirror of
https://github.com/lizheming/drone-wechat.git
synced 2026-06-04 10:23:46 +08:00
update drone docs
This commit is contained in:
@@ -10,22 +10,6 @@ image: lizheming/drone-wechat
|
||||
|
||||
The Wechat plugin posts build status messages to your account. The below pipeline configuration demonstrates simple usage:
|
||||
|
||||
```diff
|
||||
pipline:
|
||||
wechat:
|
||||
image: lizheming/drone-wechat
|
||||
+ sckey: xxxxxx
|
||||
title: ${DRONE_REPO_NAME}
|
||||
message: >
|
||||
{%if success %}
|
||||
build {{build.number}} succeeded. Good job.
|
||||
{% else %}
|
||||
build {{build.number}} failed. Fix me please.
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
If you want push notification with your own wechat corp id, you can config like this:
|
||||
|
||||
```diff
|
||||
pipeline:
|
||||
wechat:
|
||||
@@ -77,9 +61,6 @@ msg_url
|
||||
btn_text
|
||||
: The text for the button on the card
|
||||
|
||||
sckey
|
||||
: SCKEY get from [ServerChan](http://sc.ftqq.com)
|
||||
|
||||
title
|
||||
: Notification title
|
||||
|
||||
@@ -106,9 +87,6 @@ wechat\_to\_user
|
||||
wechat\_to\_tag
|
||||
: The tag ids to send the message to
|
||||
|
||||
wechat_sckey
|
||||
: SCKEY get from [ServerChan](http://sc.ftqq.com)
|
||||
|
||||
# Template Reference
|
||||
|
||||
repo.owner
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ FROM mhart/alpine-node:8.9.3
|
||||
LABEL maintainer="lizheming <i@imnerd.org>" \
|
||||
org.label-schema.name="Drone Wechat Notification" \
|
||||
org.label-schema.vendor="lizheming" \
|
||||
org.label-schema.schema-version="1.1.0"
|
||||
org.label-schema.schema-version="1.2.0"
|
||||
|
||||
WORKDIR /wechat
|
||||
COPY package.json /wechat/package.json
|
||||
|
||||
Reference in New Issue
Block a user