Browse Source

switch gitter to discord for drone. (#1971)

* switch gitter to discord for drone.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* add event

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* only notify build fail message.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Bo-Yi Wu 2 years ago
parent
commit
5b0cbf3788
3 changed files with 13 additions and 4 deletions
  1. 7 2
      .drone.yml
  2. 1 1
      .drone.yml.sig
  3. 5 1
      .editorconfig

+ 7 - 2
.drone.yml

@@ -164,8 +164,13 @@ pipeline:
164 164
       event: [ tag ]
165 165
       branch: [ refs/tags/* ]
166 166
 
167
-  gitter:
168
-    image: plugins/gitter
167
+  discord:
168
+    image: appleboy/drone-discord
169
+    webhook_id: ${WEBHOOK_ID}
170
+    webhook_token: ${WEBHOOK_TOKEN}
171
+    when:
172
+      event: [ push, tag, pull_request ]
173
+      status: [ failure ]
169 174
 
170 175
 services:
171 176
   mysql:

File diff suppressed because it is too large
+ 1 - 1
.drone.yml.sig


+ 5 - 1
.editorconfig

@@ -15,10 +15,14 @@ indent_size = 8
15 15
 indent_style = tab
16 16
 indent_size = 4
17 17
 
18
-[*.{less,yml}]
18
+[*.{less}]
19 19
 indent_style = space
20 20
 indent_size = 4
21 21
 
22
+[*.{yml}]
23
+indent_style = space
24
+indent_size = 2
25
+
22 26
 [*.js]
23 27
 indent_style = space
24 28
 indent_size = 4