Question

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

Was it helpful?

Solution

You could just use the API itself to push the gems. See the POST /api/v1/gems endpoint: http://rubygems.org/pages/api_docs

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top