founders_template 0.1.0 → 0.1.1
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/Gemfile-rails6.lock +1 -1
- data/lib/founders_template/cli.rb +11 -0
- data/lib/founders_template/version.rb +3 -1
- data/templates/buildspec.yml.erb +39 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 950499597fda4d2a618448382801e5e4ac8c363109445c55b9a8ff392e46e4de
|
|
4
|
+
data.tar.gz: 52d6986a6cd0b25ddd7c6283c41ba47c260a42ad927d4a95f024e4a26526b64f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 743bfb7aba797891bf2c40ba9ff225bbfa5fe54a269a275b005fb487f77647104bab11a42323a0c9d36e8a375ae29273b26e071dbc1bb8da212e178dfb00fba0
|
|
7
|
+
data.tar.gz: 5e5dc5452cec1c375192f12e47c6b243ffa69da290c116eba1bfc6b0ee17515884c36355b3ab68b9097032d5e5d0e080733ab1e9c858eca24325694339446bcf
|
data/Gemfile-rails6.lock
CHANGED
|
@@ -7,6 +7,8 @@ SCRIPT_PATH = File.expand_path(File.join(__dir__, '..', '..', 'bash')).freeze
|
|
|
7
7
|
|
|
8
8
|
module FoundersTemplate
|
|
9
9
|
class CLI < Thor
|
|
10
|
+
include Thor::Actions
|
|
11
|
+
|
|
10
12
|
desc 'ci SCRIPT_NAME', 'exec the ci script SCRIPT_NAME'
|
|
11
13
|
def ci(script_name, *args)
|
|
12
14
|
script_name = Shellwords.escape(script_name)
|
|
@@ -14,5 +16,14 @@ module FoundersTemplate
|
|
|
14
16
|
|
|
15
17
|
exec '/usr/bin/env', 'bash', file_path, *args
|
|
16
18
|
end
|
|
19
|
+
|
|
20
|
+
def self.source_root
|
|
21
|
+
File.join(__dir__, '../../templates')
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
desc 'install', 'install the buildspec'
|
|
25
|
+
def install
|
|
26
|
+
template 'buildspec.yml.erb', 'buildspec.yml'
|
|
27
|
+
end
|
|
17
28
|
end
|
|
18
29
|
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
version: 0.2
|
|
2
|
+
|
|
3
|
+
phases:
|
|
4
|
+
install:
|
|
5
|
+
commands:
|
|
6
|
+
- gem install founders_template
|
|
7
|
+
- ft ci install
|
|
8
|
+
|
|
9
|
+
pre_build:
|
|
10
|
+
commands:
|
|
11
|
+
- $(ft ci export_build_variables)
|
|
12
|
+
- $(ft ci export_ecr_login)
|
|
13
|
+
- ft ci pull_latest_image
|
|
14
|
+
|
|
15
|
+
build:
|
|
16
|
+
commands:
|
|
17
|
+
# Build Docker Images
|
|
18
|
+
- ft ci build_image app
|
|
19
|
+
- ft ci build_image web
|
|
20
|
+
|
|
21
|
+
# Run Tests
|
|
22
|
+
- ft ci run_tests
|
|
23
|
+
|
|
24
|
+
# Tag Docker Images
|
|
25
|
+
- ft ci tag_images
|
|
26
|
+
finally:
|
|
27
|
+
# Clean up docker compose
|
|
28
|
+
- docker-compose -f docker-compose.ci.yml logs
|
|
29
|
+
- docker-compose -f docker-compose.ci.yml down
|
|
30
|
+
|
|
31
|
+
post_build:
|
|
32
|
+
commands:
|
|
33
|
+
- ft ci post_build
|
|
34
|
+
|
|
35
|
+
artifacts:
|
|
36
|
+
files:
|
|
37
|
+
- web_imagedefinitions.json
|
|
38
|
+
- worker_imagedefinitions.json
|
|
39
|
+
name: imagedefinitions
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: founders_template
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trae Robrock
|
|
@@ -65,6 +65,7 @@ files:
|
|
|
65
65
|
- lib/founders_template.rb
|
|
66
66
|
- lib/founders_template/cli.rb
|
|
67
67
|
- lib/founders_template/version.rb
|
|
68
|
+
- templates/buildspec.yml.erb
|
|
68
69
|
homepage: https://github.com/trobrock/founders_template
|
|
69
70
|
licenses:
|
|
70
71
|
- MIT
|