ship-it utils to deploy using CI
-
Add ship-it to your
Gemfileandbundle install:gem 'ship_it', git: 'https://github.com/seekingalpha/ship_it.git'
-
Add the needed binstubs:
bundle binstubs ship-it unship-it
-
Require
ship_it/tasksin your Rakefile -
Implement
bin/test-ci-onlineandbin/queue-ship-it. This two have to exist and be executable.bin/test-ci-onlineshould succeed in case the connection to your CI server is working.bin/queue-ship-itis the script that will send the two files created byship-itto the CI server. Complete examples based on Jenkins are located under theexamplesdirectory. -
Create a
staging_historybranch. This is the branchship-itwill be using to record the staging branch list history.rake shipit:history_branch
Pass
[branch_name]if you want to use a different branch as the target for ship-it.
bin/ship-it will
To "ship" other branches, run ship-it branch_name.
After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb and push a tag of the version.