codebuild 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/codebuild.gemspec +8 -3
- data/lib/codebuild/version.rb +1 -1
- data/vendor/aws_data/CHANGELOG.md +7 -0
- data/vendor/aws_data/Gemfile +4 -0
- data/{docs/LICENSE → vendor/aws_data/LICENSE.txt} +4 -4
- data/vendor/aws_data/README.md +42 -0
- data/vendor/aws_data/Rakefile +6 -0
- data/vendor/aws_data/aws_data.gemspec +30 -0
- data/vendor/aws_data/bin/console +14 -0
- data/vendor/aws_data/bin/setup +8 -0
- data/vendor/aws_data/lib/aws_data.rb +91 -0
- data/vendor/aws_data/lib/aws_data/version.rb +3 -0
- data/vendor/aws_data/spec/aws_data_spec.rb +5 -0
- data/vendor/aws_data/spec/spec_helper.rb +14 -0
- data/vendor/cfn-status/Gemfile +4 -0
- data/vendor/cfn-status/LICENSE.txt +21 -0
- data/vendor/cfn-status/README.md +56 -0
- data/vendor/cfn-status/Rakefile +6 -0
- data/vendor/cfn-status/bin/console +14 -0
- data/vendor/cfn-status/bin/setup +8 -0
- data/vendor/cfn-status/cfn-status.gemspec +30 -0
- data/vendor/cfn-status/lib/cfn/aws_service.rb +56 -0
- data/vendor/cfn-status/lib/cfn/status.rb +220 -0
- data/vendor/cfn-status/lib/cfn/status/version.rb +5 -0
- data/vendor/cfn-status/spec/cfn/status_spec.rb +81 -0
- data/vendor/cfn-status/spec/fixtures/cfn/stack-events-complete.json +1080 -0
- data/vendor/cfn-status/spec/fixtures/cfn/stack-events-in-progress.json +1080 -0
- data/vendor/cfn-status/spec/fixtures/cfn/stack-events-update-rollback-complete.json +1086 -0
- data/vendor/cfn-status/spec/spec_helper.rb +14 -0
- data/vendor/cfn_camelizer/CHANGELOG.md +10 -0
- data/vendor/cfn_camelizer/Gemfile +4 -0
- data/vendor/cfn_camelizer/LICENSE.txt +21 -0
- data/vendor/cfn_camelizer/README.md +40 -0
- data/vendor/cfn_camelizer/Rakefile +6 -0
- data/vendor/cfn_camelizer/bin/console +14 -0
- data/vendor/cfn_camelizer/bin/setup +8 -0
- data/vendor/cfn_camelizer/cfn_camelizer.gemspec +32 -0
- data/vendor/cfn_camelizer/lib/camelizer.yml +33 -0
- data/vendor/cfn_camelizer/lib/cfn_camelizer.rb +92 -0
- data/vendor/cfn_camelizer/lib/cfn_camelizer/version.rb +3 -0
- data/vendor/cfn_camelizer/spec/cfn_camelizer_spec.rb +79 -0
- data/vendor/cfn_camelizer/spec/spec_helper.rb +14 -0
- metadata +46 -173
- data/docs/.gitignore +0 -4
- data/docs/CNAME +0 -1
- data/docs/Gemfile +0 -3
- data/docs/README.md +0 -25
- data/docs/_config.yml +0 -73
- data/docs/_docs/contributing.md +0 -99
- data/docs/_docs/conventions.md +0 -51
- data/docs/_docs/deploy.md +0 -69
- data/docs/_docs/dsl.md +0 -12
- data/docs/_docs/dsl/project.md +0 -80
- data/docs/_docs/dsl/role.md +0 -79
- data/docs/_docs/dsl/schedule.md +0 -29
- data/docs/_docs/examples.md +0 -12
- data/docs/_docs/examples/ecs.md +0 -107
- data/docs/_docs/examples/jets.md +0 -79
- data/docs/_docs/examples/ruby.md +0 -44
- data/docs/_docs/github_oauth.md +0 -51
- data/docs/_docs/install.md +0 -14
- data/docs/_docs/next-steps.md +0 -16
- data/docs/_docs/settings.md +0 -34
- data/docs/_docs/start.md +0 -51
- data/docs/_docs/type-option.md +0 -72
- data/docs/_docs/variables.md +0 -117
- data/docs/_includes/commands.html +0 -88
- data/docs/_includes/content.html +0 -25
- data/docs/_includes/edit-on-github.html +0 -9
- data/docs/_includes/examples-steps.md +0 -17
- data/docs/_includes/footer.html +0 -41
- data/docs/_includes/google_analytics.html +0 -10
- data/docs/_includes/head.html +0 -45
- data/docs/_includes/js.html +0 -15
- data/docs/_includes/nav.html +0 -17
- data/docs/_includes/prev_next.md +0 -19
- data/docs/_includes/reference.md +0 -1
- data/docs/_includes/subnav.html +0 -38
- data/docs/_includes/tutorials.md +0 -38
- data/docs/_layouts/default.html +0 -12
- data/docs/_reference/cb-completion.md +0 -44
- data/docs/_reference/cb-completion_script.md +0 -25
- data/docs/_reference/cb-delete.md +0 -26
- data/docs/_reference/cb-deploy.md +0 -58
- data/docs/_reference/cb-init.md +0 -88
- data/docs/_reference/cb-start.md +0 -43
- data/docs/_reference/cb-version.md +0 -21
- data/docs/_sass/_bootstrap-overrides.scss +0 -40
- data/docs/_sass/_contact.scss +0 -49
- data/docs/_sass/_cta.scss +0 -37
- data/docs/_sass/_download.scss +0 -31
- data/docs/_sass/_features.scss +0 -47
- data/docs/_sass/_footer.scss +0 -49
- data/docs/_sass/_global.scss +0 -102
- data/docs/_sass/_main.scss +0 -364
- data/docs/_sass/_masthead.scss +0 -70
- data/docs/_sass/_mixins.scss +0 -79
- data/docs/_sass/_navbar.scss +0 -92
- data/docs/_sass/_syntax.scss +0 -65
- data/docs/_sass/_table.scss +0 -34
- data/docs/_sass/_timeline.scss +0 -207
- data/docs/_sass/_variables.scss +0 -24
- data/docs/bin/web +0 -8
- data/docs/docs.md +0 -22
- data/docs/img/docs/codebuild-output.png +0 -0
- data/docs/img/logos/boltops-logo-full.png +0 -0
- data/docs/img/logos/boltops-logo.png +0 -0
- data/docs/img/logos/project-logo.png +0 -0
- data/docs/index.html +0 -35
- data/docs/js/nav.js +0 -39
- data/docs/js/new-age.js +0 -38
- data/docs/js/new-age.min.js +0 -6
- data/docs/new-age.scss +0 -20
- data/docs/quick-start.md +0 -72
- data/docs/reference.md +0 -12
- data/docs/support.md +0 -22
- data/docs/vendor/bootstrap/css/bootstrap-grid.css +0 -1339
- data/docs/vendor/bootstrap/css/bootstrap-grid.css.map +0 -1
- data/docs/vendor/bootstrap/css/bootstrap-grid.min.css +0 -1
- data/docs/vendor/bootstrap/css/bootstrap-grid.min.css.map +0 -1
- data/docs/vendor/bootstrap/css/bootstrap-reboot.css +0 -459
- data/docs/vendor/bootstrap/css/bootstrap-reboot.css.map +0 -1
- data/docs/vendor/bootstrap/css/bootstrap-reboot.min.css +0 -1
- data/docs/vendor/bootstrap/css/bootstrap-reboot.min.css.map +0 -1
- data/docs/vendor/bootstrap/css/bootstrap.css +0 -9320
- data/docs/vendor/bootstrap/css/bootstrap.css.map +0 -1
- data/docs/vendor/bootstrap/css/bootstrap.min.css +0 -6
- data/docs/vendor/bootstrap/css/bootstrap.min.css.map +0 -1
- data/docs/vendor/bootstrap/js/bootstrap.js +0 -3535
- data/docs/vendor/bootstrap/js/bootstrap.min.js +0 -7
- data/docs/vendor/font-awesome/css/font-awesome.css +0 -2337
- data/docs/vendor/font-awesome/css/font-awesome.min.css +0 -4
- data/docs/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
- data/docs/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/docs/vendor/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
- data/docs/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/docs/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/docs/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/docs/vendor/font-awesome/less/animated.less +0 -34
- data/docs/vendor/font-awesome/less/bordered-pulled.less +0 -25
- data/docs/vendor/font-awesome/less/core.less +0 -12
- data/docs/vendor/font-awesome/less/fixed-width.less +0 -6
- data/docs/vendor/font-awesome/less/font-awesome.less +0 -18
- data/docs/vendor/font-awesome/less/icons.less +0 -789
- data/docs/vendor/font-awesome/less/larger.less +0 -13
- data/docs/vendor/font-awesome/less/list.less +0 -19
- data/docs/vendor/font-awesome/less/mixins.less +0 -60
- data/docs/vendor/font-awesome/less/path.less +0 -15
- data/docs/vendor/font-awesome/less/rotated-flipped.less +0 -20
- data/docs/vendor/font-awesome/less/screen-reader.less +0 -5
- data/docs/vendor/font-awesome/less/stacked.less +0 -20
- data/docs/vendor/font-awesome/less/variables.less +0 -799
- data/docs/vendor/font-awesome/scss/_animated.scss +0 -34
- data/docs/vendor/font-awesome/scss/_bordered-pulled.scss +0 -25
- data/docs/vendor/font-awesome/scss/_core.scss +0 -12
- data/docs/vendor/font-awesome/scss/_fixed-width.scss +0 -6
- data/docs/vendor/font-awesome/scss/_icons.scss +0 -789
- data/docs/vendor/font-awesome/scss/_larger.scss +0 -13
- data/docs/vendor/font-awesome/scss/_list.scss +0 -19
- data/docs/vendor/font-awesome/scss/_mixins.scss +0 -60
- data/docs/vendor/font-awesome/scss/_path.scss +0 -15
- data/docs/vendor/font-awesome/scss/_rotated-flipped.scss +0 -20
- data/docs/vendor/font-awesome/scss/_screen-reader.scss +0 -5
- data/docs/vendor/font-awesome/scss/_stacked.scss +0 -20
- data/docs/vendor/font-awesome/scss/_variables.scss +0 -799
- data/docs/vendor/font-awesome/scss/font-awesome.scss +0 -18
- data/docs/vendor/jquery-easing/jquery.easing.compatibility.js +0 -59
- data/docs/vendor/jquery-easing/jquery.easing.js +0 -166
- data/docs/vendor/jquery-easing/jquery.easing.min.js +0 -1
- data/docs/vendor/jquery/jquery.js +0 -10253
- data/docs/vendor/jquery/jquery.min.js +0 -4
- data/docs/vendor/simple-line-icons/css/simple-line-icons.css +0 -778
- data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.eot +0 -0
- data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.svg +0 -200
- data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.ttf +0 -0
- data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.woff +0 -0
- data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.woff2 +0 -0
- data/docs/vendor/simple-line-icons/less/simple-line-icons.less +0 -982
- data/docs/vendor/simple-line-icons/scss/simple-line-icons.scss +0 -979
- data/docs/vendor/tether/tether.js +0 -1811
- data/docs/vendor/tether/tether.min.js +0 -1
- data/spec/fixtures/app/.codebuild/project.rb +0 -2
- data/spec/fixtures/app/.codebuild/role.rb +0 -1
- data/spec/fixtures/app/.codebuild/schedule.rb +0 -1
- data/spec/fixtures/app/.codebuild/settings.yml +0 -13
- data/spec/lib/cli_spec.rb +0 -13
- data/spec/lib/project_spec.rb +0 -12
- data/spec/lib/role_spec.rb +0 -12
- data/spec/lib/schedule_spec.rb +0 -12
- data/spec/spec_helper.rb +0 -35
data/docs/_docs/type-option.md
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Type Option
|
|
3
|
-
nav_order: 4
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
The `--type` option is a powerful option that allows you to create multiple codebuild projects associated with the same repo.
|
|
7
|
-
|
|
8
|
-
## Default Behavior
|
|
9
|
-
|
|
10
|
-
By default, the codebuild tool looks up files in the `.codebuild` folder. Example:
|
|
11
|
-
|
|
12
|
-
.codebuild/buildspec.yml
|
|
13
|
-
.codebuild/project.rb
|
|
14
|
-
.codebuild/role.rb
|
|
15
|
-
|
|
16
|
-
You can affect the behavior of the lookup logic with the `--type` option.
|
|
17
|
-
|
|
18
|
-
## Examples
|
|
19
|
-
|
|
20
|
-
cb deploy --type deploy
|
|
21
|
-
|
|
22
|
-
This will look up buildspec.yml, project.rb, and role.rb files in the `.codebuild/deploy` folder. So:
|
|
23
|
-
|
|
24
|
-
.codebuild/deploy/buildspec.yml
|
|
25
|
-
.codebuild/deploy/project.rb
|
|
26
|
-
.codebuild/deploy/role.rb
|
|
27
|
-
|
|
28
|
-
Likewise `cb deploy --type unit` would result in:
|
|
29
|
-
|
|
30
|
-
.codebuild/unit/buildspec.yml
|
|
31
|
-
.codebuild/unit/project.rb
|
|
32
|
-
.codebuild/unit/role.rb
|
|
33
|
-
|
|
34
|
-
## Structure
|
|
35
|
-
|
|
36
|
-
So if you need multiple CodeBuild projects that perform different tasks but are both related to the same code repo, this structure is useful:
|
|
37
|
-
|
|
38
|
-
.codebuild
|
|
39
|
-
├── deploy
|
|
40
|
-
│ ├── buildspec.yml
|
|
41
|
-
│ ├── project.rb
|
|
42
|
-
│ ├── role.rb
|
|
43
|
-
│ └── schedule.rb
|
|
44
|
-
└── unit
|
|
45
|
-
├── buildspec.yml
|
|
46
|
-
├── project.rb
|
|
47
|
-
├── role.rb
|
|
48
|
-
└── schedule.rb
|
|
49
|
-
|
|
50
|
-
## Code Project Name
|
|
51
|
-
|
|
52
|
-
The CloudFormation stack name is appended with the name of the type option. So if your project folder is `demo` and the type option is `unit`.
|
|
53
|
-
|
|
54
|
-
cd demo # project folder
|
|
55
|
-
cb deploy --type unit
|
|
56
|
-
|
|
57
|
-
It produces a CodeBuild project named `demo-unit`. The project name is an optional first CLI argument. Here's an example:
|
|
58
|
-
|
|
59
|
-
cd demo # project folder
|
|
60
|
-
cb deploy demo-web --type deploy # CodeProject name: demo-web-deploy
|
|
61
|
-
|
|
62
|
-
## Stack Name
|
|
63
|
-
|
|
64
|
-
The stack name is the same as the CodeBuild project name with the `-cb` suffix appended to it. Examples:
|
|
65
|
-
|
|
66
|
-
CodeBuild Project Name | Stack Name
|
|
67
|
-
--- | ---
|
|
68
|
-
demo | demo-cb
|
|
69
|
-
demo-unit | demo-unit-cb
|
|
70
|
-
demo-web-unit | demo-web-unit-cb
|
|
71
|
-
|
|
72
|
-
{% include prev_next.md %}
|
data/docs/_docs/variables.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Variables Support
|
|
3
|
-
nav_order: 5
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
The codebuild tool supports the concept of variables. Variables allow you to set environment-specific variables. For example, development and production environments usually require the same code but use different variables.
|
|
7
|
-
|
|
8
|
-
Within the `.codebuild/variables` folder, you can create variable files and the variables defined in them are made available to your `.codebuild` DSL files. Examples:
|
|
9
|
-
|
|
10
|
-
.codebuild/project.rb
|
|
11
|
-
.codebuild/role.rb
|
|
12
|
-
.codebuild/schedule.rb
|
|
13
|
-
|
|
14
|
-
## Structure
|
|
15
|
-
|
|
16
|
-
Here's an example variables structure:
|
|
17
|
-
|
|
18
|
-
.codebuild
|
|
19
|
-
└── variables
|
|
20
|
-
├── base.rb
|
|
21
|
-
├── development.rb
|
|
22
|
-
└── production.rb
|
|
23
|
-
|
|
24
|
-
## Layering Support
|
|
25
|
-
|
|
26
|
-
The variable files are layered together. The `base.rb` and specific `CB_ENV `variable file, like `development.rb`, are combined. An example helps explain. Let's say you have these files:
|
|
27
|
-
|
|
28
|
-
base.rb:
|
|
29
|
-
|
|
30
|
-
```ruby
|
|
31
|
-
@myvar = "base-value"
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
development.rb:
|
|
35
|
-
|
|
36
|
-
```ruby
|
|
37
|
-
@myvar = "development-value"
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
production.rb:
|
|
41
|
-
|
|
42
|
-
```ruby
|
|
43
|
-
@myvar = "production-value"
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Then you can do this:
|
|
47
|
-
|
|
48
|
-
cb deploy # defaults to CB_ENV=development
|
|
49
|
-
|
|
50
|
-
Since `CB_ENV=development` is the default, this means `@myvar = "development-value"` is used.
|
|
51
|
-
|
|
52
|
-
If we want to use production values, then we can set `CB_ENV=production`
|
|
53
|
-
|
|
54
|
-
CB_ENV=production cb deploy
|
|
55
|
-
|
|
56
|
-
In this case, `@myvar = "production-value"` is used.
|
|
57
|
-
|
|
58
|
-
Now if we use `CB_ENV=staging`
|
|
59
|
-
|
|
60
|
-
CB_ENV=staging cb deploy
|
|
61
|
-
|
|
62
|
-
In this case, `@myvar = "base-value"` is used, since there is no `staging.rb` file.
|
|
63
|
-
|
|
64
|
-
## Variables with -\-type Option
|
|
65
|
-
|
|
66
|
-
With codebuild, we can use a `--type` option to create additional codebuild projects under the `.codebuild` folder. Here's a short example:
|
|
67
|
-
|
|
68
|
-
cb deploy --type deploy
|
|
69
|
-
|
|
70
|
-
The buildspec file it'll use is here:
|
|
71
|
-
|
|
72
|
-
.codebuild/deploy/buildspec.yml
|
|
73
|
-
|
|
74
|
-
More info on the type option is here: [Type Option]({% link _docs/type-option.md %}).
|
|
75
|
-
|
|
76
|
-
Specific project type variables can be set. For example, let's say you have a `--type=deploy`, the variable files that will be used are:
|
|
77
|
-
|
|
78
|
-
.codebuild/deploy/variables/base.rb
|
|
79
|
-
.codebuild/deploy/variables/developemnt.rb
|
|
80
|
-
|
|
81
|
-
The type specific variable files override the top-level variable files. Type specific variable files get loaded last so they take the highest precedence. Example:
|
|
82
|
-
|
|
83
|
-
.codebuild/variables/base.rb - lowest precedence
|
|
84
|
-
.codebuild/variables/developemnt.rb
|
|
85
|
-
.codebuild/deploy/variables/base.rb
|
|
86
|
-
.codebuild/deploy/variables/developemnt.rb - highest precedence
|
|
87
|
-
|
|
88
|
-
The top-level variables files are also loaded because it is common to need variables that are available to all projects.
|
|
89
|
-
|
|
90
|
-
## VPC and Migrations Example
|
|
91
|
-
|
|
92
|
-
An good exmaple of using variables is run migrations via codebuild and the task requires access to the VPC.
|
|
93
|
-
However, the development and production resources are on separate VPCs. Variables can help here:
|
|
94
|
-
|
|
95
|
-
.codebuild/variables/development.rb:
|
|
96
|
-
|
|
97
|
-
```ruby
|
|
98
|
-
@vpc_config = { vpc_id: "vpc-aaa", subnet_id: "subnet-aaa" }
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
.codebuild/variables/production.rb:
|
|
102
|
-
|
|
103
|
-
```ruby
|
|
104
|
-
@vpc_config = { vpc_id: "vpc-bbb", subnet_id: "subnet-bbb" }
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
You'll use then `@vpc_config` variable in the `buildspec.yml`.
|
|
108
|
-
|
|
109
|
-
.codebuild/buildspec.yml:
|
|
110
|
-
|
|
111
|
-
```ruby
|
|
112
|
-
github_url("https://github.com/tongueroo/demo-ufo")
|
|
113
|
-
linux_image("aws/codebuild/ruby:2.5.3-1.7.0")
|
|
114
|
-
vpc_config @vpc_config
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
{% include prev_next.md %}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<section class="features" id="features">
|
|
2
|
-
<div class="container">
|
|
3
|
-
<div class="section-heading text-center">
|
|
4
|
-
<h2>The Code</h2>
|
|
5
|
-
<p class="text-muted">Easy to learn</p>
|
|
6
|
-
<hr>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<div class="col-lg-12">
|
|
10
|
-
<div class="container-fluid">
|
|
11
|
-
<div class="row">
|
|
12
|
-
<div class="col-lg-6">
|
|
13
|
-
<h3>Overview</h3>
|
|
14
|
-
<div class="commands">
|
|
15
|
-
{% highlight sh %}
|
|
16
|
-
cb init
|
|
17
|
-
cb deploy
|
|
18
|
-
cb start
|
|
19
|
-
cb delete
|
|
20
|
-
{% endhighlight %}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="col-lg-6">
|
|
24
|
-
<h3>Structure</h3>
|
|
25
|
-
<div class="commands">
|
|
26
|
-
{% highlight sh %}
|
|
27
|
-
.codebuild
|
|
28
|
-
├── buildspec.yml
|
|
29
|
-
├── role.rb
|
|
30
|
-
├── project.rb
|
|
31
|
-
└── schedule.rb
|
|
32
|
-
{% endhighlight %}
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<div class="row">
|
|
37
|
-
<div class="col-lg-6">
|
|
38
|
-
<h3>Usage</h3>
|
|
39
|
-
<div class="commands">
|
|
40
|
-
{% highlight sh %}
|
|
41
|
-
cb deploy # infers the project name from the parent folder
|
|
42
|
-
cb deploy project-name # explicitly specify project name
|
|
43
|
-
|
|
44
|
-
cb start # infers the project name from the parent folder
|
|
45
|
-
cb start demo-project # looks up project via CodeBuild project name
|
|
46
|
-
|
|
47
|
-
cb deploy demo --type unit # different codebuild project types
|
|
48
|
-
cb start demo --type unit
|
|
49
|
-
{% endhighlight %}
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="col-lg-6">
|
|
53
|
-
<h3>project.rb</h3>
|
|
54
|
-
<div class="commands">
|
|
55
|
-
{% highlight ruby %}
|
|
56
|
-
github_url("https://github.com/tongueroo/demo-ufo")
|
|
57
|
-
linux_image("aws/codebuild/ruby:2.5.3-1.7.0")
|
|
58
|
-
environment_variables(
|
|
59
|
-
UFO_ENV: "development",
|
|
60
|
-
API_KEY: "ssm:/codebuild/demo/api_key" # ssm param example
|
|
61
|
-
)
|
|
62
|
-
{% endhighlight %}
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
<div class="row">
|
|
67
|
-
<div class="col-lg-6">
|
|
68
|
-
<h3>role.rb</h3>
|
|
69
|
-
<div class="commands">
|
|
70
|
-
{% highlight ruby %}
|
|
71
|
-
iam_policy("logs", "ssm")
|
|
72
|
-
{% endhighlight %}
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
<div class="col-lg-6">
|
|
76
|
-
<h3>schedule.rb</h3>
|
|
77
|
-
<div class="commands">
|
|
78
|
-
{% highlight ruby %}
|
|
79
|
-
rate "1 day"
|
|
80
|
-
{% endhighlight %}
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</section>
|
data/docs/_includes/content.html
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{% if page.subnav == false %}
|
|
2
|
-
|
|
3
|
-
{{ content }}
|
|
4
|
-
|
|
5
|
-
{% else %}
|
|
6
|
-
|
|
7
|
-
<section class="features" id="features">
|
|
8
|
-
<div class="container">
|
|
9
|
-
<div class="row">
|
|
10
|
-
{% if page.reference %}
|
|
11
|
-
<div class="col-md-9 reference-nav">
|
|
12
|
-
<a href="/reference">Back to Reference Index</a>
|
|
13
|
-
</div>
|
|
14
|
-
{% endif %}
|
|
15
|
-
<div class="col-md-9 content-body">
|
|
16
|
-
<h1>{{ page.title }}</h1>
|
|
17
|
-
{{ content }}
|
|
18
|
-
{% include edit-on-github.html %}
|
|
19
|
-
</div>
|
|
20
|
-
{% include subnav.html %}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</section>
|
|
24
|
-
|
|
25
|
-
{% endif %}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<div class="edit-on-github">
|
|
2
|
-
<h2>Edit this page</h2>
|
|
3
|
-
<p>See a typo or an error? You can improve this page. This website is available on <a href="{{ site.gh_url }}">GitHub</a>, and contributions are encouraged and welcomed. We love pull requests from you! </p>
|
|
4
|
-
<ul>
|
|
5
|
-
<li><a href="{{ site.gh_url }}/blob/master/docs/{{ page.path }}" target="_blank">Suggest an edit to this page</a> (here's the <a href="{% link _docs/contributing.md %}" target="_blank">contributing guide</a>).</li>
|
|
6
|
-
<li><a href="{{ site.gh_url }}/issues/new?body=This%20issue%20is%20about%20<http://{{ site.url }}{{ page.url }}>%20(source%20file%3A%20<{{ site.gh_url }}/blob/master/docs/{{ page.path }}>)" target="_blank">Open an issue about this page</a> to report a
|
|
7
|
-
problem.</li>
|
|
8
|
-
</ul>
|
|
9
|
-
</div>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
## Create CodeBuild Project
|
|
2
|
-
|
|
3
|
-
To create the CodeBuild project via CloudFormation run:
|
|
4
|
-
|
|
5
|
-
cb deploy demo
|
|
6
|
-
|
|
7
|
-
This creates the CodeBuild project as well as the necessary IAM role.
|
|
8
|
-
|
|
9
|
-
## Start Build
|
|
10
|
-
|
|
11
|
-
To start a build:
|
|
12
|
-
|
|
13
|
-
cb start demo
|
|
14
|
-
|
|
15
|
-
You can also start a build with a specific branch. Remember to `git push` your branch.
|
|
16
|
-
|
|
17
|
-
cb start demo -b mybranch
|
data/docs/_includes/footer.html
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<footer class="text-center">
|
|
2
|
-
<div class="footer-above">
|
|
3
|
-
<div class="container">
|
|
4
|
-
<div class="row">
|
|
5
|
-
<div class="footer-col col-md-4">
|
|
6
|
-
<h3>More Tools</h3>
|
|
7
|
-
<ul class="list-unstyled tools">
|
|
8
|
-
<li><a href="https://rubyonjets.com">Jets</a></li>
|
|
9
|
-
<li><a href="https://ufoships.com">Ufo</a></li>
|
|
10
|
-
<li><a href="https://lono.cloud">Lono</a></li>
|
|
11
|
-
<li><a href="https://sonic-screwdriver.cloud">Sonic</a></li>
|
|
12
|
-
<li><a href="https://jack-eb.com">Jack</a></li>
|
|
13
|
-
</ul>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="footer-col col-md-4">
|
|
16
|
-
<h3><a href="https://boltops.com"><img class="footer-logo" src="/img/logos/boltops-logo-full.png" /></a></h3>
|
|
17
|
-
<ul class="list-inline">
|
|
18
|
-
{% for network in site.social %}
|
|
19
|
-
<li>
|
|
20
|
-
<a href="{{ network.url }}" class="btn-social btn-outline"><i class="fa fa-fw fa-{{ network.title }}"></i></a>
|
|
21
|
-
</li>
|
|
22
|
-
{% endfor %}
|
|
23
|
-
</ul>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="footer-col col-md-4">
|
|
26
|
-
<h3>Contact</h3>
|
|
27
|
-
<p>{{ site.footer.contact }}</p>
|
|
28
|
-
<p>{{ site.footer.phone }}</p>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</footer>
|
|
34
|
-
|
|
35
|
-
<footer>
|
|
36
|
-
<div class="container">
|
|
37
|
-
<div class="footer-below">
|
|
38
|
-
<p>Maintained by {{ site.footer.copyright }} 20{{ site.time | date: '%y' }}</p>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</footer>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<!-- Google analytics -->
|
|
2
|
-
<script>
|
|
3
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
4
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
5
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
6
|
-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
|
7
|
-
|
|
8
|
-
ga('create', '{{ site.google_analytics }}', 'auto');
|
|
9
|
-
ga('send', 'pageview');
|
|
10
|
-
</script>
|
data/docs/_includes/head.html
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<head>
|
|
2
|
-
|
|
3
|
-
<meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
5
|
-
<meta name="description" content="">
|
|
6
|
-
<meta name="author" content="">
|
|
7
|
-
|
|
8
|
-
{% if page.title %}
|
|
9
|
-
<title>{{ page.title }} - {{ site.title }}</title>
|
|
10
|
-
{% else %}
|
|
11
|
-
<title>CodeBuild DSL</title>
|
|
12
|
-
{% endif %}
|
|
13
|
-
|
|
14
|
-
<meta name="description" content="{{ site.description }}">
|
|
15
|
-
<meta name="keywords" content="{{ site.keywords }}" />
|
|
16
|
-
{% if site.meta_author %}<meta name="author" content="{{ site.meta_author }}">{% endif %}
|
|
17
|
-
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
|
18
|
-
|
|
19
|
-
<!-- Bootstrap core CSS -->
|
|
20
|
-
<link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
21
|
-
|
|
22
|
-
<!-- Custom fonts for this template -->
|
|
23
|
-
<link rel="stylesheet" href="/vendor/font-awesome/css/font-awesome.min.css">
|
|
24
|
-
<link rel="stylesheet" href="/vendor/simple-line-icons/css/simple-line-icons.css">
|
|
25
|
-
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
|
|
26
|
-
<link href="https://fonts.googleapis.com/css?family=Catamaran:100,200,300,400,500,600,700,800,900" rel="stylesheet">
|
|
27
|
-
<link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet">
|
|
28
|
-
|
|
29
|
-
<!-- Custom styles for this template -->
|
|
30
|
-
<link href="/new-age.css" rel="stylesheet">
|
|
31
|
-
|
|
32
|
-
<!-- Temporary navbar container fix -->
|
|
33
|
-
<style>
|
|
34
|
-
.navbar-toggler {
|
|
35
|
-
z-index: 1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@media (max-width: 576px) {
|
|
39
|
-
nav > .container {
|
|
40
|
-
width: 100%;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
</style>
|
|
44
|
-
|
|
45
|
-
</head>
|
data/docs/_includes/js.html
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Bootstrap core JavaScript -->
|
|
2
|
-
<script src="/vendor/jquery/jquery.min.js"></script>
|
|
3
|
-
<script src="/vendor/tether/tether.min.js"></script>
|
|
4
|
-
<script src="/vendor/bootstrap/js/bootstrap.min.js"></script>
|
|
5
|
-
|
|
6
|
-
<!-- Plugin JavaScript -->
|
|
7
|
-
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
8
|
-
|
|
9
|
-
<!-- Custom scripts for this template -->
|
|
10
|
-
<script src="/js/new-age.min.js"></script>
|
|
11
|
-
<script src="/js/nav.js"></script>
|
|
12
|
-
|
|
13
|
-
{% if site.google_analytics and jekyll.environment == "production" %}
|
|
14
|
-
{% include google_analytics.html %}
|
|
15
|
-
{% endif %}
|