Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

Commit 6a1c93a

Browse files
committed
cache busting when building custom images
fixed undefined dir name in error message
1 parent e541e22 commit 6a1c93a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ docker build -t $BUILDNAME \
138138
#Build custom images based on the previously built image
139139

140140
if [ ! -z "$CUSTOMIZE" ] && [ ! -d "$PWD/custom/$CUSTOMIZE" ]; then
141-
warning "Folder ${i} can't be built. Folder missing!"
141+
warning "Folder ${CUSTOMIZE} can't be built. Folder missing!"
142142
exit 1
143143
fi
144144

@@ -162,6 +162,7 @@ if [ -d "$PWD/custom" ]; then
162162
docker build -t $i \
163163
-f "${DOCKERFILE_PATH}" \
164164
--build-arg BUILD_FROM="${BUILDNAME}" \
165+
--no-cache \
165166
"$BUILD_DIR/$i"
166167

167168
else

0 commit comments

Comments
 (0)