Code Monkey home page Code Monkey logo

git.ruby-lang.org's Introduction

git.ruby-lang.org test

Features

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

pre-receive

  • Verify committer email from SVN_ACCOUNT_NAME associated to SSH key used for git push
  • Reject merge commits (ask @mame about why)

post-receive

  • Send notification to [email protected]
  • Commit automatic styling:
    • remove trailing spaces
    • append newline at EOF
    • expand tabs
  • Update version.h if date is changed
  • Request Redmine to fetch changesets
  • Mirror cgit to GitHub
  • Notify committer's Slack

The directory structure of git.ruby-lang.org

  • /data/git/ruby.git: Bare Git repository of ruby
    • hooks/post-receive: Run /home/git/git.ruby-lang.org/hooks/post-receive.sh
  • /home/git/git.ruby-lang.org: Cloned Git repository of git.ruby-lang.org

Notes

  • There's a symlink /var/git -> /data/git.
  • User git's $HOME is NOT /home/git but /var/git.

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

Authentication

  • We use only admin user for git.ruby-lang.org's SSH access.
    • You should contact @hsbt, @mame or @k0kubun for accessing git.ruby-lang.org.

bin, cgi-bin, hooks

  • git push to ruby/git.ruby-lang.org's master branch automatically updates them.
    • ruby/git.ruby-lang.org push webhook triggers cgi-bin/webhook.cgi
    • It runs sudo -u git bin/update-git-ruby-lang-org.sh

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 store ssh_host_key* and sshd_config safely?
  • How to write a recipe to mount data volume for bare git repository?
  • How to write a recipe for mackerel with the host key of 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

git.ruby-lang.org's People

Contributors

duerst avatar eban avatar gotoken avatar headius avatar hsbt avatar jemmaissroff avatar junaruga avatar k0kubun avatar kateinoigakukun avatar kddnewton avatar m-nakamura145 avatar makenowjust avatar mame avatar nagachika avatar nobu avatar nurse avatar okkez avatar peterzhu2118 avatar schneems avatar shyouhei avatar sorah avatar soutaro avatar suketa avatar tadd avatar takano32 avatar unak avatar watson1978 avatar zenspider avatar znz avatar zzak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git.ruby-lang.org's Issues

Rename to git.ruby-lang.org

This repository contained the manifest for server configuration. We should rename this to git.ruby-lang.org.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.