Skip to content

Python CLI for notifying Slack of Travis CI deployments

Notifications You must be signed in to change notification settings

brett-matthews/notifybot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deploybot

Overview

  • Install and execute this CLI from within your Travis jobs to notify a Slack channel on deployment events.
  • Note: It only works from within Travis jobs, as it reads from the provided Convenience Variables

Example Travis YAML

Be sure to encrypt your token or webhook URL

$ gem install travis
$ travis encrypt SLACK_TOKEN=yourtoken --add
$ travis encrypt SLACK_WEBHOOK=yourwebhook --add

Use a legacy API token

after_deploy:
  - pip install notifybot && notifybot -t $SLACK_TOKEN -c your-slack-channel

Use an incoming webhook URL

after_deploy:
  - pip install notifybot && notifybot -w $SLACK_WEBHOOK -c your-slack-channel

Related docs

About

Python CLI for notifying Slack of Travis CI deployments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%