update docs

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2017-08-14 10:03:15 +08:00
parent 834f686c9c
commit b89a000d5e
+21 -2
View File
@@ -18,7 +18,6 @@ pipeline:
image: appleboy/drone-discord
webhook_id: xxxxxxxxxx
webhook_token: xxxxxxxxxx
message: "Testing from drone image"
```
Example configuration with TTS message:
@@ -65,7 +64,7 @@ pipeline:
image: appleboy/drone-discord
webhook_id: xxxxxxxxxx
webhook_token: xxxxxxxxxx
+ messageq: |
+ message: |
+ {{ #success build.status }}
+ build {{ build.number }} succeeded. Good job.
+ {{ else }}
@@ -73,6 +72,26 @@ pipeline:
+ {{ /success }}
```
Example configuration using credentials from secrets:
```diff
pipeline:
discord:
image: appleboy/drone-discord
- webhook_id: xxxxxxxxxx
- webhook_token: xxxxxxxxxx
+ secrets: [ discord_webhook_id, discord_webhook_token ]
message: "Testing from drone image"
```
# Secret Reference
discord_webhook_id
: discord webhook id
discord_webhook_token
: discord webhook token
# Parameter Reference
webhook_id