We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6590cb commit 0494939Copy full SHA for 0494939
stacks/buildstack.sh
@@ -8,6 +8,7 @@ set -e
8
# Constants
9
###
10
BASE_REPO="codebox"
11
+BASE_STACK="base"
12
SRC_DIR=$(readlink -f ..)
13
TMP_SRC="/tmp/codebox_src"
14
STACK_SRC="${SRC_DIR}/stacks/base/src"
@@ -87,7 +88,7 @@ REPO="${BASE_REPO}.${STACK}"
87
88
TAG=$VERSION
89
90
# We need codebox's source for the base image
-if [[ ${STACK} == "base" ]]; then
91
+if [[ ${STACK} == ${BASE_STACK} ]]; then
92
clean_src
93
mv ${TMP_SRC} ${STACK_SRC}
94
fi;
@@ -104,7 +105,7 @@ if [ ! $BUILD_ERROR == 0 ]; then
104
105
106
107
# Cleanup tmp src folder
108
109
rm -rf "${TMP_SRC}"
110
rm -rf "${STACK_SRC}"
111
0 commit comments