Skip to content

Commit

Permalink
Merge pull request #2 from pocket-playlab/ci
Browse files Browse the repository at this point in the history
trying to build and push the gem from ci box
  • Loading branch information
MacTynow committed Apr 1, 2015
2 parents 0a7bfb2 + d4fa9be commit 0e8c6f1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ test:
- sleep 2
override:
- bundle exec rspec

deployment:
rubygems:
branch: master
commands:
- sed "s/<API_KEY>/$RUBYGEMS_API_KEY/" gem_credentials.template > ~/.gem/credentials
- chmod 0600 /home/ubuntu/.gem/credentials
- gem build etcd-env.gemspec
- gem push etcd-env-*
2 changes: 1 addition & 1 deletion etcd-env.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
Gem::Specification.new do |spec|
spec.name = 'etcd-env'
spec.version = '0.0.2'
spec.version = '0.0.4'
spec.authors = ['Charles Martinot', 'Omar Khan']
spec.email = ['[email protected]']
spec.summary = 'Run a command with environment variables from etcd'
Expand Down
3 changes: 3 additions & 0 deletions gem_credentials.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
HTTP Basic: Access denied.
:rubygems_api_key: <API_KEY>

0 comments on commit 0e8c6f1

Please sign in to comment.