Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ManualBuild should abort early on failure
credman committed Nov 1, 2022
1 parent 5c583e8 commit a20a26a
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions manualBuild.sh
@@ -1,28 +1,26 @@
source ./buildVersion.sh
echo "Building tier/gte version ${VERSION_TAG}"
docker build --pull --tag=tier/gte:base-${VERSION_TAG} base/ \
#&& docker build --build-arg VERSION_TAG=${VERSION_TAG} --tag=tier/gte:full_demo-${VERSION_TAG} full-demo \
docker build --pull --tag=tier/gte:base-${VERSION_TAG} base/

pushd ex101
./manualBuild.sh
popd

pushd ex201
./manualBuild.sh
popd

# pushd ex211
# ./manualBuild.sh
# popd
#
# pushd ex301
# ./manualBuild.sh
# popd
result=$?
if [ "$result" -ne 0 ]; then
echo "Build in base exited with status $result"
exit $result
fi

pushd ex401
./manualBuild.sh
popd
for lesson in ex101 ex201 ex401; do
pushd ex101
./manualBuild.sh
result=$?
if [ "$result" -ne 0 ]; then
echo "Build in $lesson exited with status $result"
exit $result
fi
popd
done

if [[ "$OSTYPE" == "darwin"* ]]; then
say full build complete
fi

exit $result

0 comments on commit a20a26a

Please sign in to comment.