update drone docs

This commit is contained in:
lizheming
2018-03-23 09:55:56 +08:00
parent b511b81acc
commit 009655fcfe
2 changed files with 1 additions and 23 deletions
-22
View File
@@ -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
View File
@@ -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