Make docker build failres actually fail.
Currently, docker builds will not fail, because the make rule
was swallowing the failure and returning exit code 0.
@@ -26,8 +26,8 @@ docker-build: $(addsuffix -build,$(addprefix docker-,$(BUILD_CONTAINERS)))
.PHONY: docker-%-build
docker-%-build:
- @${DOCKERBUILD} -t ${ORG}/$* -f docker/Dockerfile.$* .
- @if [ "x${COMMIT}" != "x" ] ; then \
+ @${DOCKERBUILD} -t ${ORG}/$* -f docker/Dockerfile.$* . && \
+ if [ "x${COMMIT}" != "x" ] ; then \
docker tag ${ORG}/$* ${ORG}/$*:${COMMIT} ;\
fi
