Drone plugin for sending Gtalk notifications. You can get the OAuth token in Google playground. Please set the scope as https://www.googleapis.com/auth/googletalk
.
The pre-compiled binaries can be downloaded from release page. Support the following OS type.
With Go
installed
go get -u -v github.com/appleboy/drone-gtalk
or build the binary with the following command:
make build
Test the package with the following command:
make test
Build the docker image with the following commands:
make docker
Execute from the working directory:
docker run --rm \
-e PLUGIN_HOST=talk.google.com:443 \
-e PLUGIN_USERNAME=xxxxxxx \
-e PLUGIN_OAUTH_TOKEN=xxxxxxx \
-e PLUGIN_TO=xxxxxxx \
-e PLUGIN_MESSAGE=test \
-e PLUGIN_ONLY_MATCH_EMAIL=false \
-e DRONE_REPO_OWNER=appleboy \
-e DRONE_REPO_NAME=go-hello \
-e DRONE_COMMIT_SHA=e5e82b5eb3737205c25955dcc3dcacc839b7be52 \
-e DRONE_COMMIT_BRANCH=master \
-e DRONE_COMMIT_AUTHOR=appleboy \
-e [email protected] \
-e DRONE_BUILD_NUMBER=1 \
-e DRONE_BUILD_STATUS=success \
-e DRONE_BUILD_LINK=http://github.com/appleboy/go-hello \
-e DRONE_JOB_STARTED=1477550550 \
-e DRONE_JOB_FINISHED=1477550750 \
-v $(pwd):$(pwd) \
-w $(pwd) \
appleboy/drone-gtalk
Load all environments from file.
docker run --rm \
-e ENV_FILE=your_env_file_path \
-v $(pwd):$(pwd) \
-w $(pwd) \
appleboy/drone-gtalk