This is a tool for updating rubylang/rubyfarm.
- fetches the ruby repository,
- build each not-built-yet commit,
- creates a docker image, and
- pushes docker hub: rubylang/rubyfarm.
$ docker pull rubylang/rubyfarm:latest
$ docker run --rm -ti rubylang/rubyfarm:latest
# ruby -v
ruby 2.7.0dev (2019-02-13 trunk 67066) [x86_64-linux]
docker login
- Test it manually:
ruby rubyfarmer.rb
- Set it as a cron job:
0 * * * * SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXX/XXX/XXX /path/to/rubyfarmer.rb