Automatically push gem to RubyGems.org from a Continuous Integration server
I have a Continuous Integration / Continuous Deployment scenario where I want my build script to push a ruby开发者_如何学运维 gem directly from a public Build Server (teamcity.codebetter.com) to RubyGems.org.
The problem is: How can I specify my credentials? On my local machine I have them under ~/.gem/credentials and everything works fine but how can I tell the build server to push my gem?
Thanks and best regards, Steffen Forkmann
You could just use the API itself to push the gems. See the POST /api/v1/gems endpoint: http://rubygems.org/pages/api_docs
I would guess if you manually pushed once from the continuous integration box as the user who runs the CI software it could push in the future.
精彩评论