Skip to content
Snippets Groups Projects
Commit 53eac496 authored by lennart's avatar lennart
Browse files

Exit if fail

parent 92868e56
Branches
No related tags found
No related merge requests found
#/bin/bash
#!/bin/bash
REGISTRY=$1
for sbcl_version in $(cat sbcl_version); do
......@@ -10,7 +10,7 @@ set ${stack_version};
cd assStackQuestion;
#git checkout $2
cd ../
./buildimage.sh ${sbcl_version} ${maxima_version} $1 "assStackQuestion/classes/stack/maxima" ${REGISTRY}
./buildimage.sh ${sbcl_version} ${maxima_version} $1 "assStackQuestion/classes/stack/maxima" ${REGISTRY} || exit 1
unset IFS
done
#for moodle_version in $(cat moodle_version); do
......
......@@ -14,7 +14,7 @@ IMAGENAME=$5"/sbcl"$1"_maxima"$2"_"$3
# check if the image already exists on the server
docker pull ${IMAGENAME}
# build it
docker build -t ${IMAGENAME} --build-arg MAXIMA_VERSION=$2 --build-arg SBCL_VERSION=$1 --build-arg LIB_PATH=$4 .
docker build -t ${IMAGENAME} --build-arg MAXIMA_VERSION=$2 --build-arg SBCL_VERSION=$1 --build-arg LIB_PATH=$4 . || exit 1
echo ${IMAGENAME}" wurde erfolgreich gebaut."
# testing?
# push it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment