drone-gtalk
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
.
Build or Download a binary
The pre-compiled binaries can be downloaded from release page. Support the following OS type.
- Windows amd64/386
- Linux amd64/386
- Darwin amd64/386
With Go
installed
go get -u -v github.com/appleboy/drone-gtalk
or build the binary with the following command:
make build
Testing
Test the package with the following command:
make test
Docker
Build the docker image with the following commands:
make docker
Usage
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 DRONE_COMMIT_AUTHOR_EMAIL=appleboy@gmail.com \
-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