founders_template 0.1.3 → 0.1.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/Gemfile-rails6.lock +1 -1
- data/bash/ci/build_image.sh +4 -2
- data/lib/founders_template/cli.rb +4 -0
- data/lib/founders_template/version.rb +1 -1
- data/templates/buildspec.yml.erb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 162d24020d37092738c90417d19405b254c57dab395d1ea071263660e9701f4b
|
|
4
|
+
data.tar.gz: 106056a7fcbfa6ec1070152012776c155b569b346aa1ca910ff1dce97bd8fa82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 133cd94c44204b69ae1a5f0575db4ef7277adf5978907c2e9b11830fa1f5985b55ff433b457b31cc58b86656a1f213988994fe39ba212904a42a9cf52966409f
|
|
7
|
+
data.tar.gz: 30886e8e388b3d221732819cbf68eb91d30ebdbb368e0f1ac4f9f27dfbc2150ab035e8bdcfe68ac9f9f0bb44a9fe08bd1f8a3a1ecbbceb0f204aec5acc7bea99
|
data/Gemfile-rails6.lock
CHANGED
data/bash/ci/build_image.sh
CHANGED
|
@@ -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
|
-
|
|
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 \
|
data/templates/buildspec.yml.erb
CHANGED