Codepipeline
The codepipeline tool provides a DSL to make it easy create a CodePipeline pipeline.
The codebuild tool installs codepipline
and pipe
executables. Both of them do the same thing, pipe
is just shorter to type.
The documentation site is at: codepipeline.org
Quick Start
pipe init
pipe deploy
pipe start
pipe delete
The CLI tool also detects and tasks in the current folder's Rakefile and delegate to those tasks.
Init and Structure
DSL
.codepipeline/pipeline.rb:
stage "Source" do
github(
source: "tongueroo/demo-ufo",
auth_token: ssm("/github/user/token")
)
end
stage "DeployStacks" do
codebuild "demo1" # action declaration
codebuild "demo2", "demo3" # will run in parallel
codebuild "demo4" # action declaration
end
More DSL docs
Installation
Add this line to your application's Gemfile:
gem "codepipeline"
And then execute:
bundle
Or install it yourself as:
gem install codepipeline
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am "Add some feature"
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request