support gtalk notification on drone.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
2decbaf729
commit
2c880a2d67
11
.drone.yml
11
.drone.yml
|
@ -23,6 +23,15 @@ pipeline:
|
||||||
matrix:
|
matrix:
|
||||||
GO_VERSION: 1.7.1
|
GO_VERSION: 1.7.1
|
||||||
|
|
||||||
|
gtalk:
|
||||||
|
image: appleboy/drone-gtalk
|
||||||
|
pull: true
|
||||||
|
to: appleboy.tw@gmail.com
|
||||||
|
when:
|
||||||
|
status: [ success, failure ]
|
||||||
|
matrix:
|
||||||
|
GO_VERSION: 1.7.1
|
||||||
|
|
||||||
facebook:
|
facebook:
|
||||||
image: appleboy/drone-facebook
|
image: appleboy/drone-facebook
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -40,6 +49,8 @@ pipeline:
|
||||||
ignore_branch: true
|
ignore_branch: true
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
matrix:
|
||||||
|
GO_VERSION: 1.7.1
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
eyJhbGciOiJIUzI1NiJ9.cGlwZWxpbmU6CiAgIyByZXN0b3JlIHRoZSBjYWNoZSBmcm9tIGFuIHNmdHAgc2VydmVyCiAgcmVzdG9yZV9jYWNoZToKICAgIGltYWdlOiBhcHBsZWJveS9kcm9uZS1zZnRwLWNhY2hlCiAgICByZXN0b3JlOiB0cnVlCiAgICBtb3VudDogWyAuZ2xpZGUsIHZlbmRvciBdCiAgICBpZ25vcmVfYnJhbmNoOiB0cnVlCgogIGJ1aWxkOgogICAgaW1hZ2U6IGFwcGxlYm95L2dvbGFuZy10ZXN0aW5nOiR7R09fVkVSU0lPTn0KICAgIGVudmlyb25tZW50OgogICAgICAtIEdPUEFUSD0vZ28KICAgIGNvbW1hbmRzOgogICAgICAtIG1ha2UgaW5zdGFsbAogICAgICAtIGNvdmVyYWdlIGFsbAoKIC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sZF9jYWNoZToKICAgIGltYWdlOiBhcHBsZWJveS9kcm9uZS1zZnRwLWNhY2hlCiAgICByZWJ1aWxkOiB0cnVlCiAgICBtb3VudDogWyAuZ2xpZGUsIHZlbmRvciBdCiAgICBpZ25vcmVfYnJhbmNoOiB0cnVlCiAgICB3aGVuOgogICAgICBicmFuY2g6IG1hc3RlcgogICAgICBtYXRyaXg6CiAgICAgICAgR09fVkVSU0lPTjogMS43LjEKCnNlcnZpY2VzOgogIHJlZGlzOgogICAgaW1hZ2U6IHJlZGlzOmFscGluZQoKd29ya3NwYWNlOgogIHBhdGg6IC9nby9zcmMvZ2l0aHViLmNvbS9hcHBsZWJveS9nb3J1c2gKCm1hdHJpeDoKICBHT19WRVJTSU9OOgogICAgLSAxLjcuMQogICAgLSAxLjYuMwo.A944ZNCmn8WqJ1mTXFcOUPRk5LjvErNRu2uqm7QTpyQ
|
|
@ -1,9 +1,10 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gopkg.in/yaml.v2"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfYaml is config structure.
|
// ConfYaml is config structure.
|
||||||
|
|
|
@ -3,11 +3,12 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/appleboy/gorush/config"
|
|
||||||
"github.com/appleboy/gorush/gorush"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/appleboy/gorush/config"
|
||||||
|
"github.com/appleboy/gorush/gorush"
|
||||||
)
|
)
|
||||||
|
|
||||||
func checkInput(token, message string) {
|
func checkInput(token, message string) {
|
||||||
|
|
Loading…
Reference in New Issue