문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top