forked from softdevteam/mattermost-github-integration
-
Notifications
You must be signed in to change notification settings - Fork 1
Howto
Syam.G.Krishnan edited this page Jan 20, 2017
·
4 revisions
-
create incoming webhooks on mattermost application,
-
pass it to the container runtime as environment variables
-
then create Webhooks from the github side points to [mattermost-github host].
##Environment variables REPO_NAMES : comma seperated repo names
HOOK_URLS : comma seperated urls to mattermost webhook
CHANNEL_NAMES : comma seperated channel names which should be notified
$ docker run -e REPO_NAMES="team/reponame0, team/reponame1"
-e HOOK_URL="url0, url1" \
-e CHANNEL_NAME="channel0, channel1" \
registry.centos.org/mattermost/mattermost-github-integration
Openshift Deployment config: https://github.com/syamgk/mattermost-github-integration/blob/deploy-config/mm-github.json
$ wget https://raw.githubusercontent.com/syamgk/mattermost-github-integration/deploy-config/mm-github.json
$ oc new-app -p REPOS="team/reponame0, team/reponame1",MMURLS="url0, url1",CHANNEL="channel0, channel1" -f mm-github.json
$ oc expose service github-mm-integration