From f3887ade2908a4ddb7158acdbb20fe56b506964a Mon Sep 17 00:00:00 2001 From: ofekshenawa Date: Wed, 3 Jan 2024 15:47:59 +0200 Subject: [PATCH] fails when docker exec command fails --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2599e59..94a272d 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,13 @@ #!/bin/bash +set -e + if [[ -n "${DOCKER_ACCESS_TOKEN}" ]]; then echo $DOCKER_ACCESS_TOKEN | docker login --username=$DOCKER_USERNAME --password-stdin fi ## Build infrastructure ## -docker-compose up -d +docker-compose up -d --abort-on-container-exit sleep 10 ## Create cluster ##