2017-08-08 13:35:33 +00:00
# github-releases-notifier
2020-01-14 13:44:08 +00:00
[![Build Status ](https://cloud.drone.io/api/badges/xoxys/github-releases-notifier/status.svg )](https://cloud.drone.io/xoxys/github-releases-notifier)
[![Go Report Card ](https://goreportcard.com/badge/github.com/xoxys/github-releases-notifier )](https://goreportcard.com/report/github.com/xoxyscom/github-releases-notifier)
[![Docker Pulls ](https://img.shields.io/docker/pulls/xoxys/github-releases-notifier.svg?maxAge=604800 )](https://hub.docker.com/r/xoxys/github-releases-notifier)
2017-08-08 13:35:33 +00:00
Receive Slack notifications if a new release of your favorite software is available on GitHub.
2017-08-08 14:28:17 +00:00
![screenshot.png ](screenshot.png )
### Watching repositories
2017-08-08 14:30:43 +00:00
To watch repositories simply add them to the list of arguments `-r=kubernetes/kubernetes -r=prometheus/prometheus` and so on.
2017-08-08 14:28:17 +00:00
2017-08-08 13:35:33 +00:00
### Deploying
1. Get a URL to send WebHooks to your Slack from https://api.slack.com/incoming-webhooks.
2. Get a token for scraping GitHub: [https://help.github.com/ ](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line ).
#### Docker
```
2020-01-14 13:44:08 +00:00
docker run --rm -e GITHUB_TOKEN=XXX -e SLACK_HOOK=https://hooks.slack.com/... xoxys/github-releases-notifier -r=kubernetes/kubernetes
2017-08-08 13:35:33 +00:00
```
#### docker-compose
1. Change into the `deployments/` folder.
2. Open `docker-compose.yml`
3. Change the token in the environment section to the ones obtained above.
4. `docker-compose up`
#### Kubernetes
```bash
kubectl create secret generic github-releases-notifier \
--from-literal=github=XXX` \
--from-literal=slack=XXX
```
After creating the secret with your credentials you can apply the deployment:
`kubectl apply -f deployments/kubernetes.yml`
2020-01-14 12:59:59 +00:00
That's it.