mirror of
https://github.com/thegeeklab/github-releases-notifier.git
synced 2024-11-24 01:20:38 +00:00
GitHub release notification bot
deployments | ||
docker | ||
.drone.star | ||
.drone.yml | ||
.env.example | ||
.gitignore | ||
CHANGELOG.md | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md | ||
release.go | ||
releasechecker.go | ||
repository.go | ||
slack.go |
github-releases-notifier
Receive Slack notifications if a new release of your favorite software is available on GitHub.
Watching repositories
To watch repositories simply add them to the list of arguments -r=kubernetes/kubernetes -r=prometheus/prometheus
and so on.
Deploying
- Get a URL to send WebHooks to your Slack from https://api.slack.com/incoming-webhooks.
- Get a token for scraping GitHub: https://help.github.com/.
Docker
docker run --rm -e GITHUB_TOKEN=XXX -e SLACK_HOOK=https://hooks.slack.com/... xoxys/github-releases-notifier -r=kubernetes/kubernetes
docker-compose
- Change into the
deployments/
folder. - Open
docker-compose.yml
- Change the token in the environment section to the ones obtained above.
docker-compose up
Kubernetes
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
That's it.