Home

Awesome

git.ruby-lang.org test

Features

On each commit of Ruby's Git repository, following git hooks are triggered:

pre-receive

post-receive

The directory structure of git.ruby-lang.org

Notes

How to deploy ruby/git.ruby-lang.org

Authentication

bin, cgi-bin, hooks

recipes

# dry-run
bin/hocho apply -n git.ruby-lang.org

# apply
bin/hocho apply git.ruby-lang.org

TODO for recipes for git.ruby-lang.org

How to set up default gem sync

  1. Add your gem repository name to DEFAULT_GEM_REPOS in cgi-bin/webhook.cgi, and push it to master.
  2. Go to https://github.com/ruby/{repo_name}/settings/hooks, and add a webhook
    • Payload URL: Set the content of ~git/config/git-ruby-lang-org-url in git.ruby-lang.org
    • Content type: application/json
    • Secret: Set the content of ~git/config/git-ruby-lang-org-secret in git.ruby-lang.org
    • Which events: Just the push event.

License

Ruby License