A Github bot that cancels redundant circle builds!
Circle Reaper scans your repository after a push and cancels all but the latest build on any given branch (except master!).
Based on the fine work of mikeastock's pipefitter
rackup
&& sidekiq -C config/sidekiq.yml -r ./boot.rb
REDIS_URL
set for redisSIDEKIQ_USERNAME
&SIDEKIQ_PASSWORD
for sidekiq authenticationCIRCLECI_TOKEN
for circle accessSECRET_TOKEN
set this as the secret in the Github Webhook for authentication (optional)TEST_BRANCH
set this as a branch name and Circle Reaper will only run on that branch (optional)
- Have this app exposed and running with a url (heroku is great for this)
- Add a Github Webhook for your exposed endpoint (ex: http://mysite.com/payload)
- Adding
[run circle]
to your commit will skip this bot
- Right now if any commits in a push contain "[run circle]" all commits will run circle.
- If you push right after a "[run circle]" commit, circle will be cancelled.
I use ngrok and the command ngrok http 9292