codepipeline 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/Gemfile.lock +7 -7
  4. data/codepipe.gemspec +5 -1
  5. data/lib/codepipe/version.rb +1 -1
  6. data/vendor/aws_data/Gemfile +4 -0
  7. data/vendor/aws_data/Gemfile.lock +48 -0
  8. data/{docs/LICENSE → vendor/aws_data/LICENSE.txt} +4 -4
  9. data/vendor/aws_data/README.md +41 -0
  10. data/vendor/aws_data/Rakefile +6 -0
  11. data/vendor/aws_data/aws_data.gemspec +30 -0
  12. data/vendor/aws_data/bin/console +14 -0
  13. data/vendor/aws_data/bin/setup +8 -0
  14. data/vendor/aws_data/lib/aws_data.rb +89 -0
  15. data/vendor/aws_data/lib/aws_data/version.rb +3 -0
  16. data/vendor/aws_data/spec/aws_data_spec.rb +5 -0
  17. data/vendor/aws_data/spec/spec_helper.rb +14 -0
  18. data/vendor/cfn-status/Gemfile +4 -0
  19. data/vendor/cfn-status/Gemfile.lock +49 -0
  20. data/vendor/cfn-status/LICENSE.txt +21 -0
  21. data/vendor/cfn-status/README.md +56 -0
  22. data/vendor/cfn-status/Rakefile +6 -0
  23. data/vendor/cfn-status/bin/console +14 -0
  24. data/vendor/cfn-status/bin/setup +8 -0
  25. data/vendor/cfn-status/cfn-status.gemspec +30 -0
  26. data/vendor/cfn-status/lib/cfn/aws_service.rb +56 -0
  27. data/vendor/cfn-status/lib/cfn/status.rb +220 -0
  28. data/vendor/cfn-status/lib/cfn/status/version.rb +5 -0
  29. data/vendor/cfn-status/spec/cfn/status_spec.rb +81 -0
  30. data/vendor/cfn-status/spec/fixtures/cfn/stack-events-complete.json +1080 -0
  31. data/vendor/cfn-status/spec/fixtures/cfn/stack-events-in-progress.json +1080 -0
  32. data/vendor/cfn-status/spec/fixtures/cfn/stack-events-update-rollback-complete.json +1086 -0
  33. data/vendor/cfn-status/spec/spec_helper.rb +14 -0
  34. data/vendor/cfn_camelizer/CHANGELOG.md +10 -0
  35. data/vendor/cfn_camelizer/Gemfile +4 -0
  36. data/vendor/cfn_camelizer/LICENSE.txt +21 -0
  37. data/vendor/cfn_camelizer/README.md +40 -0
  38. data/vendor/cfn_camelizer/Rakefile +6 -0
  39. data/vendor/cfn_camelizer/bin/console +14 -0
  40. data/vendor/cfn_camelizer/bin/setup +8 -0
  41. data/vendor/cfn_camelizer/cfn_camelizer.gemspec +32 -0
  42. data/vendor/cfn_camelizer/lib/camelizer.yml +27 -0
  43. data/vendor/cfn_camelizer/lib/cfn_camelizer.rb +92 -0
  44. data/vendor/cfn_camelizer/lib/cfn_camelizer/version.rb +3 -0
  45. data/vendor/cfn_camelizer/spec/cfn_camelizer_spec.rb +79 -0
  46. data/vendor/cfn_camelizer/spec/spec_helper.rb +14 -0
  47. metadata +44 -171
  48. data/docs/.gitignore +0 -4
  49. data/docs/CNAME +0 -1
  50. data/docs/Gemfile +0 -3
  51. data/docs/README.md +0 -25
  52. data/docs/_config.yml +0 -73
  53. data/docs/_docs/contributing.md +0 -99
  54. data/docs/_docs/conventions.md +0 -42
  55. data/docs/_docs/deploy.md +0 -59
  56. data/docs/_docs/dsl.md +0 -39
  57. data/docs/_docs/dsl/approve.md +0 -62
  58. data/docs/_docs/dsl/pipeline.md +0 -55
  59. data/docs/_docs/dsl/pipeline/action.md +0 -28
  60. data/docs/_docs/dsl/pipeline/codebuild.md +0 -62
  61. data/docs/_docs/dsl/pipeline/prefix-and-suffix.md +0 -57
  62. data/docs/_docs/dsl/role.md +0 -79
  63. data/docs/_docs/dsl/schedule.md +0 -29
  64. data/docs/_docs/dsl/sns.md +0 -27
  65. data/docs/_docs/dsl/webhook.md +0 -31
  66. data/docs/_docs/ecs-deploy.md +0 -22
  67. data/docs/_docs/examples/codebuild-project.md +0 -21
  68. data/docs/_docs/examples/different-branches.md +0 -49
  69. data/docs/_docs/examples/multiple-codebuild-projects.md +0 -60
  70. data/docs/_docs/install.md +0 -14
  71. data/docs/_docs/next-steps.md +0 -16
  72. data/docs/_docs/settings.md +0 -34
  73. data/docs/_docs/start.md +0 -31
  74. data/docs/_docs/structure.md +0 -25
  75. data/docs/_includes/commands.html +0 -92
  76. data/docs/_includes/content.html +0 -25
  77. data/docs/_includes/edit-on-github.html +0 -9
  78. data/docs/_includes/example.html +0 -12
  79. data/docs/_includes/footer.html +0 -41
  80. data/docs/_includes/google_analytics.html +0 -10
  81. data/docs/_includes/head.html +0 -45
  82. data/docs/_includes/js.html +0 -15
  83. data/docs/_includes/nav.html +0 -17
  84. data/docs/_includes/prev_next.md +0 -19
  85. data/docs/_includes/reference.md +0 -1
  86. data/docs/_includes/subnav.html +0 -47
  87. data/docs/_includes/tutorials.md +0 -38
  88. data/docs/_layouts/default.html +0 -12
  89. data/docs/_reference/pipe-completion.md +0 -44
  90. data/docs/_reference/pipe-completion_script.md +0 -25
  91. data/docs/_reference/pipe-delete.md +0 -25
  92. data/docs/_reference/pipe-deploy.md +0 -26
  93. data/docs/_reference/pipe-init.md +0 -25
  94. data/docs/_reference/pipe-start.md +0 -25
  95. data/docs/_reference/pipe-version.md +0 -21
  96. data/docs/_sass/_bootstrap-overrides.scss +0 -40
  97. data/docs/_sass/_contact.scss +0 -49
  98. data/docs/_sass/_cta.scss +0 -37
  99. data/docs/_sass/_download.scss +0 -31
  100. data/docs/_sass/_features.scss +0 -47
  101. data/docs/_sass/_footer.scss +0 -49
  102. data/docs/_sass/_global.scss +0 -102
  103. data/docs/_sass/_main.scss +0 -370
  104. data/docs/_sass/_masthead.scss +0 -70
  105. data/docs/_sass/_mixins.scss +0 -79
  106. data/docs/_sass/_navbar.scss +0 -92
  107. data/docs/_sass/_syntax.scss +0 -65
  108. data/docs/_sass/_table.scss +0 -34
  109. data/docs/_sass/_timeline.scss +0 -207
  110. data/docs/_sass/_variables.scss +0 -24
  111. data/docs/bin/web +0 -8
  112. data/docs/docs.md +0 -24
  113. data/docs/img/docs/codepipeline-output.png +0 -0
  114. data/docs/img/docs/multiple-codebuild-projects-pipeline.png +0 -0
  115. data/docs/img/logos/boltops-logo-full.png +0 -0
  116. data/docs/img/logos/boltops-logo.png +0 -0
  117. data/docs/img/logos/project-logo.png +0 -0
  118. data/docs/index.html +0 -37
  119. data/docs/js/nav.js +0 -39
  120. data/docs/js/new-age.js +0 -38
  121. data/docs/js/new-age.min.js +0 -6
  122. data/docs/new-age.scss +0 -20
  123. data/docs/quick-start.md +0 -72
  124. data/docs/reference.md +0 -12
  125. data/docs/support.md +0 -22
  126. data/docs/vendor/bootstrap/css/bootstrap-grid.css +0 -1339
  127. data/docs/vendor/bootstrap/css/bootstrap-grid.css.map +0 -1
  128. data/docs/vendor/bootstrap/css/bootstrap-grid.min.css +0 -1
  129. data/docs/vendor/bootstrap/css/bootstrap-grid.min.css.map +0 -1
  130. data/docs/vendor/bootstrap/css/bootstrap-reboot.css +0 -459
  131. data/docs/vendor/bootstrap/css/bootstrap-reboot.css.map +0 -1
  132. data/docs/vendor/bootstrap/css/bootstrap-reboot.min.css +0 -1
  133. data/docs/vendor/bootstrap/css/bootstrap-reboot.min.css.map +0 -1
  134. data/docs/vendor/bootstrap/css/bootstrap.css +0 -9320
  135. data/docs/vendor/bootstrap/css/bootstrap.css.map +0 -1
  136. data/docs/vendor/bootstrap/css/bootstrap.min.css +0 -6
  137. data/docs/vendor/bootstrap/css/bootstrap.min.css.map +0 -1
  138. data/docs/vendor/bootstrap/js/bootstrap.js +0 -3535
  139. data/docs/vendor/bootstrap/js/bootstrap.min.js +0 -7
  140. data/docs/vendor/font-awesome/css/font-awesome.css +0 -2337
  141. data/docs/vendor/font-awesome/css/font-awesome.min.css +0 -4
  142. data/docs/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
  143. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  144. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
  145. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  146. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  147. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  148. data/docs/vendor/font-awesome/less/animated.less +0 -34
  149. data/docs/vendor/font-awesome/less/bordered-pulled.less +0 -25
  150. data/docs/vendor/font-awesome/less/core.less +0 -12
  151. data/docs/vendor/font-awesome/less/fixed-width.less +0 -6
  152. data/docs/vendor/font-awesome/less/font-awesome.less +0 -18
  153. data/docs/vendor/font-awesome/less/icons.less +0 -789
  154. data/docs/vendor/font-awesome/less/larger.less +0 -13
  155. data/docs/vendor/font-awesome/less/list.less +0 -19
  156. data/docs/vendor/font-awesome/less/mixins.less +0 -60
  157. data/docs/vendor/font-awesome/less/path.less +0 -15
  158. data/docs/vendor/font-awesome/less/rotated-flipped.less +0 -20
  159. data/docs/vendor/font-awesome/less/screen-reader.less +0 -5
  160. data/docs/vendor/font-awesome/less/stacked.less +0 -20
  161. data/docs/vendor/font-awesome/less/variables.less +0 -799
  162. data/docs/vendor/font-awesome/scss/_animated.scss +0 -34
  163. data/docs/vendor/font-awesome/scss/_bordered-pulled.scss +0 -25
  164. data/docs/vendor/font-awesome/scss/_core.scss +0 -12
  165. data/docs/vendor/font-awesome/scss/_fixed-width.scss +0 -6
  166. data/docs/vendor/font-awesome/scss/_icons.scss +0 -789
  167. data/docs/vendor/font-awesome/scss/_larger.scss +0 -13
  168. data/docs/vendor/font-awesome/scss/_list.scss +0 -19
  169. data/docs/vendor/font-awesome/scss/_mixins.scss +0 -60
  170. data/docs/vendor/font-awesome/scss/_path.scss +0 -15
  171. data/docs/vendor/font-awesome/scss/_rotated-flipped.scss +0 -20
  172. data/docs/vendor/font-awesome/scss/_screen-reader.scss +0 -5
  173. data/docs/vendor/font-awesome/scss/_stacked.scss +0 -20
  174. data/docs/vendor/font-awesome/scss/_variables.scss +0 -799
  175. data/docs/vendor/font-awesome/scss/font-awesome.scss +0 -18
  176. data/docs/vendor/jquery-easing/jquery.easing.compatibility.js +0 -59
  177. data/docs/vendor/jquery-easing/jquery.easing.js +0 -166
  178. data/docs/vendor/jquery-easing/jquery.easing.min.js +0 -1
  179. data/docs/vendor/jquery/jquery.js +0 -10253
  180. data/docs/vendor/jquery/jquery.min.js +0 -4
  181. data/docs/vendor/simple-line-icons/css/simple-line-icons.css +0 -778
  182. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.eot +0 -0
  183. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.svg +0 -200
  184. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.ttf +0 -0
  185. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.woff +0 -0
  186. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.woff2 +0 -0
  187. data/docs/vendor/simple-line-icons/less/simple-line-icons.less +0 -982
  188. data/docs/vendor/simple-line-icons/scss/simple-line-icons.scss +0 -979
  189. data/docs/vendor/tether/tether.js +0 -1811
  190. data/docs/vendor/tether/tether.min.js +0 -1
  191. data/spec/fixtures/app/.codepipeline/pipeline.rb +0 -12
  192. data/spec/fixtures/app/.codepipeline/schedule.rb +0 -1
  193. data/spec/fixtures/app/.codepipeline/webhook.rb +0 -1
  194. data/spec/fixtures/pipelines/approve.rb +0 -22
  195. data/spec/fixtures/pipelines/approve_existing_sns.rb +0 -24
  196. data/spec/lib/cli_spec.rb +0 -18
  197. data/spec/lib/pipeline/approve_spec.rb +0 -32
  198. data/spec/lib/pipeline_spec.rb +0 -12
  199. data/spec/lib/role_spec.rb +0 -12
  200. data/spec/lib/schedule_spec.rb +0 -12
  201. data/spec/lib/webhook_spec.rb +0 -12
  202. data/spec/spec_helper.rb +0 -35
@@ -1,4 +0,0 @@
1
- _site
2
- .sass-cache
3
- .jekyll-metadata
4
- Gemfile.lock
data/docs/CNAME DELETED
@@ -1 +0,0 @@
1
- codepipeline.org
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "jekyll"
@@ -1,25 +0,0 @@
1
- # codepipeline Documentation
2
-
3
- This project powers the codepipeline documementation website: [https://codepipeline.org](https://codepipeline.org). It is a static website generated by [Jekyll](https://jekyllrb.com/).
4
-
5
- ## Contributing
6
-
7
- For minor changes like typos, you can click **Suggest an edit to this page**, located at the bottom of each article. This will take you to the source file on GitHub, where you can submit a pull request for your change through the UI.
8
-
9
- ## Local Setup
10
-
11
- For larger fixes, you can run the site locally with the following:
12
-
13
- git clone https://github.com/tongueroo/codepipeline.git
14
- cd codepipeline/docs
15
- bundle
16
- bin/web
17
-
18
- You'll be able to view the site on [http://localhost:4000](http://localhost:4000).
19
-
20
- ## Rordering Site Nav
21
-
22
- To reorder the `nav_order` for links on the sidenav run:
23
-
24
- cd docs
25
- jekyll-sort reorder
@@ -1,73 +0,0 @@
1
- # Site settings
2
- title: codepipeline
3
- email: tongueroo@gmail.com
4
- url: https://codepipeline.org
5
- description: "CodePipeline DSL"
6
- keywords: "codepipeline boltops dsl ruby aws"
7
- skills: ""
8
- meta_author: Tung Nguyen
9
-
10
- # Google webmaster tools
11
- google_verify:
12
- google_analytics: "UA-98684555-12"
13
-
14
- # https://ssl.bing.com/webmaster/configure/verify/ownership Option 2 content= goes here
15
- bing_verify:
16
-
17
- # Contact form:
18
- # - static : pass through formspree.io to validate email sending
19
- # - disqus : replace contact form by disqus thread
20
- # - comment the line below if you want to stick with the default PHP contact form
21
- contact: static
22
-
23
- # If you use disqus you need disqus shortname
24
- # https://help.disqus.com/customer/portal/articles/466208
25
- disqus_shortname:
26
-
27
- # Color settings (hex-codes without the leading hash-tag)
28
- color:
29
- primary: 3972c7
30
- primary-rgb: "24,288,156" #"128,179,255"
31
- secondary: 2c3e50 #FD6E8A
32
- secondary-dark: 233140 #A2122F
33
- links: a3c8ff
34
-
35
- # Footer settings
36
- footer:
37
- copyright: BoltOps, LLC
38
- location: San Francisco, CA
39
- social: BoltOps
40
- credits:
41
- contact: contact@boltops.com
42
- phone:
43
-
44
- # Social networks usernames (many more available: google-plus, flickr, dribbble, pinterest, instagram, tumblr, linkedin, etc.)
45
- social:
46
- - title: twitter
47
- url: http://twitter.com/tongueroo
48
- - title: github
49
- url: https://github.com/tongueroo/codepipeline
50
-
51
- # Credits content
52
- credits:
53
-
54
- # Build settings
55
- markdown: kramdown
56
- permalink: pretty
57
-
58
- gh_url: https://github.com/tongueroo/codepipeline
59
-
60
- collections:
61
- docs:
62
- name: "Documentation"
63
- output: true
64
- reference:
65
- name: "Reference"
66
- output: true
67
-
68
- defaults:
69
- - values:
70
- layout: default
71
-
72
- plugins_dir:
73
- - jekyll-coffeescript
@@ -1,99 +0,0 @@
1
- ---
2
- title: Contributing
3
- ---
4
-
5
- Hi there! Interested in contributing to CodePipeline? We'd love your help. CodePipeline is an open source project, built one contribution at a time by users like you.
6
-
7
- ## Where to get help or report a problem
8
-
9
- See [the support guidelines]({% link support.md %})
10
-
11
- ## Ways to contribute
12
-
13
- Whether you're a developer, an infrastructure engineer, or just an enthusiast, there are lots of ways to contribute. Here are a few ideas:
14
-
15
- * [Install CodePipeline on your computer](https://https://codepipeline.org.com/docs/install/) and kick the tires. Does it work? Does it do what you'd expect? If not, [open an issue](https://github.com/tongueroo/codepipeline/issues/new/choose) and let us know.
16
- * Comment on some of the project's [open issues](https://github.com/tongueroo/codepipeline/issues). Have you experienced the same problem? Know a workaround? Do you have a suggestion for how the feature could be better?
17
- * Read through [the documentation](https://https://codepipeline.org.com/docs/), and click the "improve this page" button, any time you see something confusing or have a suggestion for something that could be improved.
18
- * Browse through the [CodePipeline Community forum](https://community.https://codepipeline.org.com), and lend a hand answering questions. There's a good chance you've already experienced what another user is experiencing.
19
- * Find [an open issue](https://github.com/tongueroo/codepipeline/issues) (especially [those labeled `help wanted`](https://github.com/tongueroo/codepipeline/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)), and submit a proposed fix. If it's your first pull request, we promise we won't bite and are glad to answer any questions.
20
- * Help evaluate [open pull requests](https://github.com/tongueroo/codepipeline/pulls), by testing the changes locally and reviewing what's proposed.
21
-
22
- ## Submitting a pull request
23
-
24
- ### Pull requests generally
25
-
26
- * The smaller the proposed change, the better. If you'd like to propose two unrelated changes, submit two pull requests.
27
-
28
- * The more information, the better. Make judicious use of the pull request body. Describe what changes were made, why you made them, and what impact they will have for users.
29
-
30
- * If this is your first pull request, it may help to [understand GitHub Flow](https://guides.github.com/introduction/flow/).
31
-
32
- * If you're submitting a code contribution, be sure to read the [code contributions](#code-contributions) section below.
33
-
34
- ### Submitting a pull request via github.com
35
-
36
- Many small changes can be made entirely through the github.com web interface.
37
-
38
- 1. Navigate to the file within [tongueroo/codepipeline](https://github.com/tongueroo/codepipeline) that you'd like to edit.
39
- 2. Click the pencil icon in the top right corner to edit the file.
40
- 3. Make your proposed changes.
41
- 4. Click "Propose file change."
42
- 5. Click "Create pull request."
43
- 6. Add a descriptive title and detailed description for your proposed change. The more information, the better.
44
- 7. Click "Create pull request."
45
-
46
- That's it! You'll be automatically subscribed to receive updates as others review your proposed change and provide feedback.
47
-
48
- ### Submitting a pull request via Git command line
49
-
50
- 1. Fork the project by clicking "Fork" in the top right corner of [tongueroo/codepipeline](https://github.com/tongueroo/codepipeline).
51
- 2. Clone the repository locally `git clone https://github.com/<your-username>/codepipeline`.
52
- 3. Fetch submodules `git submodule init && git submodule update`.
53
- 4. Create a new, descriptively named branch to contain your change ( `git checkout -b my-awesome-feature` ).
54
- 5. Hack away, add tests. Not necessarily in that order.
55
- 6. Make sure everything still passes by running `bundle exec rspec` (see [the tests section](#running-tests-locally) below)
56
- 7. Push the branch up ( `git push origin my-awesome-feature` ).
57
- 8. Create a pull request by visiting `https://github.com/<your-username>/codepipeline` and following the instructions at the top of the screen.
58
-
59
- ## Proposing updates to the documentation
60
-
61
- We want the CodePipeline documentation to be the best it can be. We've open-sourced our docs and we welcome any pull requests if you find it lacking.
62
-
63
- ### How to submit changes
64
-
65
- You can find the documentation for [https://codepipeline.org.com](http://https://codepipeline.org.com) in the [docs](https://github.com/tongueroo/codepipeline/tree/master/docs) directory. See the section above, [submitting a pull request](#submitting-a-pull-request) for information on how to propose a change.
66
-
67
- One gotcha, all pull requests should be directed at the `master` branch (the default branch).
68
-
69
- ## Code Contributions
70
-
71
- Interesting in submitting a pull request? Awesome. Read on. There are a few common gotchas that we'd love to help you avoid.
72
-
73
- ### Tests and documentation
74
-
75
- Any time you propose a code change, you should also include updates to the documentation and tests within the same pull request.
76
-
77
- #### Documentation
78
-
79
- If your contribution changes any CodePipeline behavior, make sure to update the documentation. Documentation lives in the `docs` folder. It's a Jekyll site and can be started with `cd docs && bin/web`. If the docs are missing information, please feel free to add it in. Great docs make a great project. Include changes to the documentation within your pull request, and once merged, `https://codepipeline.org.com` will be updated.
80
-
81
- #### Tests
82
-
83
- * If you're creating a small fix or patch to an existing feature, a simple test is more than enough. You can usually copy/paste from an existing example in the `specs` folder.
84
-
85
- ### Code contributions generally
86
-
87
- * Don't bump the Gem version in your pull request (if you don't know what that means, you probably didn't).
88
-
89
- ## Running tests
90
-
91
- ### Test Dependencies
92
-
93
- To run the test suite by running the following command:
94
-
95
- bundle exec rspec
96
-
97
- ## Thank You
98
-
99
- Thanks! Hacking on CodePipeline should be fun. If you find any of this hard to figure out, let us know so we can improve our process or documentation!
@@ -1,42 +0,0 @@
1
- ---
2
- title: Naming Conventions
3
- nav_order: 7
4
- ---
5
-
6
- The codepipeline tool follows a few naming conventions.
7
-
8
- ## Pipeline Name
9
-
10
- It will set the pipeline name by inferring the name of the parent folder. For example, if the parent folder is `demo`.
11
-
12
- cd demo
13
- pipe deploy
14
-
15
- The pipeline is named `demo`. You can override this easily by providing a pipeline name.
16
-
17
- pipe deploy my-pipeline # explicitly use my-pipeline as pipeline name
18
-
19
- The pipeline is named `my-pipeline`
20
-
21
- ## PIPE_ENV_EXTRA
22
-
23
- The `PIPE_ENV_EXTRA` also affects the name of the pipeline. It gets appended at the end of the pipeline name.
24
-
25
- PIPE_ENV_EXTRA=2 pipe deploy my-pipeline
26
-
27
- The pipeline is named `my-pipeline-2`.
28
-
29
- ## Settings append_env option
30
-
31
- If the append_env is configured in the [Settings]({% link _docs/settings.md %}), then the `PIPE_ENV` is added to the pipeline name. For example: `demo-development` instead of `demo`.
32
-
33
- ## Stack Name
34
-
35
- The CloudFormation stack name which creates the CodePipeline related resources is named the same as the pipeline name with `-pipe` appended to the stack name. Examples:
36
-
37
- Pipeline Name | Stack Name
38
- --- | ---
39
- demo | demo-pipe
40
- my-app | my-app-pipe
41
-
42
- {% include prev_next.md %}
@@ -1,59 +0,0 @@
1
- ---
2
- title: Deploy
3
- nav_order: 4
4
- ---
5
-
6
- The pipeline is generated from the DSL and created with CloudFormation. The files that the DSL evaluates are in the `.codepipeline` folder:
7
-
8
- .codepipeline/pipeline.rb
9
- .codepipeline/role.rb
10
- .codepipeline/schedule.rb
11
- .codepipeline/webhook.rb
12
-
13
- To create the CodePipeline pipeline, you run:
14
-
15
- pipe deploy
16
-
17
- You'll see output that looks something like this:
18
-
19
- $ pipe deploy
20
- Generated CloudFormation template at /tmp/codepipeline.yml
21
- Deploying stack demo-pipe with CodePipeline project demo
22
- Creating stack demo-pipe. Check CloudFormation console for status.
23
- Stack name demo-pipe status CREATE_IN_PROGRESS
24
- Here's the CloudFormation url to check for more details https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks
25
- Waiting for stack to complete
26
- 04:14:03AM CREATE_IN_PROGRESS AWS::CloudFormation::Stack demo-pipe User Initiated
27
- 04:14:06AM CREATE_IN_PROGRESS AWS::IAM::Role IamRole
28
- 04:14:07AM CREATE_IN_PROGRESS AWS::IAM::Role IamRole Resource creation Initiated
29
- 04:14:25AM CREATE_COMPLETE AWS::IAM::Role IamRole
30
- 04:14:28AM CREATE_IN_PROGRESS AWS::CodePipeline::Pipeline Pipeline
31
- 04:14:29AM CREATE_IN_PROGRESS AWS::CodePipeline::Pipeline Pipeline Resource creation Initiated
32
- 04:14:29AM CREATE_COMPLETE AWS::CodePipeline::Pipeline Pipeline
33
- 04:14:31AM CREATE_IN_PROGRESS AWS::CodePipeline::Webhook Webhook
34
- 04:14:33AM CREATE_IN_PROGRESS AWS::CodePipeline::Webhook Webhook Resource creation Initiated
35
- 04:14:33AM CREATE_COMPLETE AWS::CodePipeline::Webhook Webhook
36
- 04:14:35AM CREATE_COMPLETE AWS::CloudFormation::Stack demo-pipe
37
- Stack success status: CREATE_COMPLETE
38
- Time took for stack deployment: 35s.
39
- $
40
-
41
- ## Explicit Pipeline Name
42
-
43
- By default, the pipeline name is inferred and is the parent folder that you are within. You can explicitly specify the pipeline name as the first CLI argument:
44
-
45
- pipe deploy my-pipeline
46
-
47
- ## Specify Git Branch
48
-
49
- It is useful to build pipelines with different source git branches. You can pass a `--branch` option to the `pipe deploy` command. The cli `—-branch` option always takes the highest precedence. Example:
50
-
51
- pipe deploy my-pipeline --branch my-branch
52
-
53
- Note: When you specify a branch the codepipeline tool actually first updates the pipeline before starting the pipeline execution. This is done because CodePipeline does not natively support specifying the branch. It is discussed more here: [Using Different Branches]({% link _docs/examples/different-branches.md %}).
54
-
55
- ## CLI Reference
56
-
57
- Also, for help info you can check the [pipe deploy]({% link _reference/pipe-deploy.md %}) CLI reference.
58
-
59
- {% include prev_next.md %}
@@ -1,39 +0,0 @@
1
- ---
2
- title: CodePipeline DSL
3
- nav_order: 8
4
- ---
5
-
6
- CodePipeline provides a simple yet powerful DSL to create CodePipeline related resources. Here's an example:
7
-
8
- ```ruby
9
- stage "Source" do
10
- github(
11
- source: "tongueroo/demo-test",
12
- auth_token: ssm("/github/user/token")
13
- )
14
- end
15
-
16
- stage "Build" do
17
- codebuild "demo1", "demo2"
18
- codebuild "demo3"
19
- end
20
-
21
- stage "Approve" do
22
- approve("Approve this deploy")
23
- end
24
-
25
- stage "Deploy" do
26
- codebuild "deploy"
27
- end
28
- ```
29
-
30
- Here are some examples of resources it can create:
31
-
32
- * [pipeline]({% link _docs/dsl/pipeline.md %}): The CodePipeline pipeline. This is required.
33
- * [iam role]({% link _docs/dsl/role.md %}): The IAM role associated with the CodePipeline pipeline.
34
- * [webhook]({% link _docs/dsl/webhook.md %}): The webhook associated with the CodePipeline pipeline.
35
- * [schedule]({% link _docs/dsl/schedule.md %}): An CloudWatch Event rule: triggers the pipeline to start on a scheduled basis.
36
- * [approve]({% link _docs/dsl/approve.md %}): An manual approval action step.
37
- * [sns topic]({% link _docs/dsl/sns.md %}): The SNS Topic associated with the approval step. This is optional and provides a way to customize the SNS topic if needed.
38
-
39
- {% include prev_next.md %}
@@ -1,62 +0,0 @@
1
- ---
2
- title: Approval Action DSL
3
- nav_text: Approve
4
- categories: dsl
5
- nav_order: 9
6
- ---
7
-
8
- You can add an approve action to a stage with the simple `approve` method. There are various helpful forms. Let's start with the simplest form.
9
-
10
- ## String
11
-
12
- The approve method take can take a simple String. In this form, it sets the message for the approval action. Essentially, it sets the `configuration.CustomData` property of the Approval action. See [Add an Action to a Pipeline in CodePipeline](https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-action-add.html) docs for the full structure.
13
-
14
- ```ruby
15
- stage "Approve" do
16
- approve("Approve this deployment")
17
- end
18
- ```
19
-
20
- With CodePipeline, an SNS topic is required to be associated with the Approval Action. In the case of a String form, the codepipeline tool will automatically create and manage the SNS topic associated with the `approve` declaration.
21
-
22
- ## Simplified Configuration Hash
23
-
24
- If the `approve` method is provided a Hash with the `notification_arn` and `custom_data`, then the codepipeline tool will set the `configuration` directly. Example:
25
-
26
- ```ruby
27
- stage "Approve" do
28
- approve(
29
- notification_arn: "arn:aws:sns:us-west-2:536766270177:hello-topic",
30
- custom_data: "Approve deployment",
31
- )
32
- end
33
- ```
34
-
35
- In this case, the codepipeline will *not* create an SNS Topic as we're have specified an existing SNS topic.
36
-
37
- ## Full Config
38
-
39
- The convenience methods merely wrap a CodePipeline Approval Action. An example of the Approval Action structure is provided in the [Add an Action to a Pipeline in CodePipeline](https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-action-add.html) docs.
40
-
41
- If you need to set the properties more directly, here's an example of using the "Full" Config.
42
-
43
- ```ruby
44
- stage "Approve" do
45
- approve(
46
- name: "approve",
47
- action_type_id: {
48
- category: "Approval",
49
- owner: "AWS",
50
- provider: "Manual",
51
- version: "1",
52
- },
53
- run_order: 1,
54
- configuration: {
55
- custom_data: "my message",
56
- notification_arn: {ref: "SnsTopic"}, # defaults to generated SNS topic
57
- },
58
- )
59
- end
60
- ```
61
-
62
- {% include prev_next.md %}
@@ -1,55 +0,0 @@
1
- ---
2
- title: Pipeline DSL
3
- nav_text: Pipeline
4
- categories: dsl
5
- nav_order: 10
6
- ---
7
-
8
- The pipeline DSL allows you to define the stages and actions within that stage with only a few lines of code. In the Quick Start, we define a very short pipeline for as a simple example. Here we'll show more of the DSL power.
9
-
10
- ```ruby
11
- stage "Source" do
12
- github(
13
- source: "tongueroo/demo-test",
14
- auth_token: ssm("/github/user/token")
15
- )
16
- end
17
-
18
- stage "Build" do
19
- codebuild "demo1", "demo2"
20
- codebuild "demo3"
21
- end
22
-
23
- stage "Approve" do
24
- approve("Approve this deploy")
25
- end
26
-
27
- stage "Deploy" do
28
- codebuild "deploy"
29
- end
30
- ```
31
-
32
- This pipeline has 3 stages:
33
-
34
- 1. downloads the source code from Gitub and uploads it to S3 as an output artifact
35
- 2. starts some codebuild project with output artifact from the previous step
36
- 3. waits for a manual approval stage
37
- 4. uses another codebuild to kick off a deploy.
38
-
39
- ## Build Stage
40
-
41
- Within the build stage, there are multiple actions. Some of them run in parallel and some in serial.
42
-
43
- * The demo1 and demo2 codebuild projects run on the same `RunOrder=1`. They run in parallel.
44
- * The demo3 codebuild project run with `RunOrder=2`. It starts after both demo1 and demo2 finishes.
45
-
46
- The Pipeline DSL allows to you connect the stages together how you want them with very little code.
47
-
48
- ## Pipeline Specific DSL Docs
49
-
50
- {% assign docs = site.docs | where: "categories","dsl-pipeline" %}
51
- {% for doc in docs -%}
52
- * [{{doc.nav_text}}]({{doc.url}})
53
- {% endfor %}
54
-
55
- {% include prev_next.md %}