Receive Slack notifications if a new release of your favorite software is available on GitHub or Gitlab.
To watch repositories simply add them to the list of arguments -r=github.com/kubernetes/kubernetes -r=gitlab.com/tezos/tezos
and so on.
- 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 run --rm -e GITHUB_AUTH_TOKEN=XXX GITLAB_AUTH_TOKEN=YYY -e SLACK_HOOK=https://hooks.slack.com/... justwatch/github-releases-notifier -r=github.com/kubernetes/kubernetes
- Change into the
deployments/
folder. - Open
docker-compose.yml
- Change the token in the environment section to the ones obtained above.
docker-compose up
kubectl create secret generic github-releases-notifier \
--from-literal=github=XXX \
--from-literal=gitlab=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.