From e2ce95a6c6e152eb5bc164dfe80cbf57afd87afe Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 14 Feb 2019 16:27:47 -0500 Subject: Do not publish "nothing" --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.sh b/build.sh index 29f9980..cb4b5d7 100755 --- a/build.sh +++ b/build.sh @@ -40,6 +40,13 @@ if [[ -n ${is_tag_latest} ]]; then fi docker build ${TAGS[@]} . +rv=$? + +if (( rv > 0 )); then + echo "Failed... Image not published" + exit $? +fi + max_retry=4 retry=0 -- cgit