founders_template 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e33d787c6736db9ea253774787e9f7b3705b9e06afe93e1ca01411cdcad8e419
4
- data.tar.gz: 17b6c122ec9e2f974b53bc3726bb58f758c7c78d9148855d782535b8dfa1456e
3
+ metadata.gz: 950499597fda4d2a618448382801e5e4ac8c363109445c55b9a8ff392e46e4de
4
+ data.tar.gz: 52d6986a6cd0b25ddd7c6283c41ba47c260a42ad927d4a95f024e4a26526b64f
5
5
  SHA512:
6
- metadata.gz: 6ee77f90541b14c3be44429343302df959d3ba6bd713c95678a3a68564c99cc1bd7d819d2c11d03fbd6caeb3975f4e8e9f2a4640c830462276df6e6c891e2a9d
7
- data.tar.gz: 918607bfd74e654da98d9861705a2b6f4195a9e6bb2938b9833f11619ba67d48a2ce8e5b4410a5163d50f260a5cd8c30f09222802f969be428c0ac7e36bfaa8c
6
+ metadata.gz: 743bfb7aba797891bf2c40ba9ff225bbfa5fe54a269a275b005fb487f77647104bab11a42323a0c9d36e8a375ae29273b26e071dbc1bb8da212e178dfb00fba0
7
+ data.tar.gz: 5e5dc5452cec1c375192f12e47c6b243ffa69da290c116eba1bfc6b0ee17515884c36355b3ab68b9097032d5e5d0e080733ab1e9c858eca24325694339446bcf
data/Gemfile-rails6.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- founders_template (0.1.0)
4
+ founders_template (0.1.1)
5
5
  thor (~> 1.0)
6
6
 
7
7
  GEM
@@ -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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module FoundersTemplate
2
- VERSION = "0.1.0"
4
+ VERSION = '0.1.1'
3
5
  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.0
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