founders_template 0.1.3 → 0.1.4

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: 4f778c67aa0b23fdf70d7ee41b7e989a774e7a810ada15d2f805ddf47785aec5
4
- data.tar.gz: b27060bdfec354a751932afb8ba2fed4252162cef4ea4fa1e507e7ff8b8ea841
3
+ metadata.gz: 162d24020d37092738c90417d19405b254c57dab395d1ea071263660e9701f4b
4
+ data.tar.gz: 106056a7fcbfa6ec1070152012776c155b569b346aa1ca910ff1dce97bd8fa82
5
5
  SHA512:
6
- metadata.gz: b5ea28ed9b81d17c257a3202b801fe86e25a625cd9b2a3fd756c7334bbded7c1aef7aecaeae0703046d6ea216634cf4dc25cc2da6de4f37f52c8c5826449bde4
7
- data.tar.gz: 88515689c9a372a5aa3cdd38e971ecf4b22b2a1300bb2c47600695d86c1631d4e099915382df9d20150afc8a408564d85c57e1b6bb6de3349ea42c4d4650bd14
6
+ metadata.gz: 133cd94c44204b69ae1a5f0575db4ef7277adf5978907c2e9b11830fa1f5985b55ff433b457b31cc58b86656a1f213988994fe39ba212904a42a9cf52966409f
7
+ data.tar.gz: 30886e8e388b3d221732819cbf68eb91d30ebdbb368e0f1ac4f9f27dfbc2150ab035e8bdcfe68ac9f9f0bb44a9fe08bd1f8a3a1ecbbceb0f204aec5acc7bea99
data/Gemfile-rails6.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- founders_template (0.1.3)
4
+ founders_template (0.1.4)
5
5
  activesupport
6
6
  aws-sdk-core
7
7
  aws-sdk-ec2
@@ -4,12 +4,14 @@ TARGET="$1"
4
4
 
5
5
  if [[ "$TARGET" -eq "app" ]]; then
6
6
  HAS_DOCKER_IMAGE="$(docker image ls --filter "reference=$APP_REPOSITORY_URI:latest" --format "{{.ID}}" | wc -l)"
7
- CACHE_IMAGE="$(if [ $HAS_DOCKER_IMAGE -eq "1" ]; then echo "--cache-from $APP_REPOSITORY_URI:latest" ; fi)"
7
+ if [ "$HAS_DOCKER_IMAGE" -eq "1" ]; then
8
+ CACHE_IMAGE="--cache-from $APP_REPOSITORY_URI:latest"
9
+ fi
8
10
  else
9
11
  CACHE_IMAGE="--cache-from app:$GIT_COMMIT_SHA"
10
12
  fi
11
13
 
12
- echo "Building the $TARGET Docker image..."
14
+ echo "Building the $TARGET Docker image... using cache: $CACHE_IMAGE"
13
15
  exec docker build \
14
16
  $CACHE_IMAGE \
15
17
  --build-arg RAILS_ENV=$RAILS_ENV \
@@ -57,6 +57,10 @@ module FoundersTemplate
57
57
 
58
58
  private
59
59
 
60
+ def version
61
+ VERSION
62
+ end
63
+
60
64
  def ensure_aws_credentials
61
65
  return if aws_credentials?
62
66
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FoundersTemplate
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
@@ -8,7 +8,7 @@ env:
8
8
  phases:
9
9
  install:
10
10
  commands:
11
- - gem install founders_template
11
+ - gem install founders_template -v "<%= version %>"
12
12
  - ft ci install
13
13
 
14
14
  pre_build:
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock