From 81eabc1f164a0ec682ef2c58a54b253dfe8d6a44 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Wed, 24 Jul 2024 21:47:55 +0300 Subject: [PATCH] chore: fail deploy script on error --- scripts/deploy_docker.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/deploy_docker.sh b/scripts/deploy_docker.sh index c7847dd..e7fd269 100644 --- a/scripts/deploy_docker.sh +++ b/scripts/deploy_docker.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Fail the script if any command fails +set -e + docker compose build ml docker compose up -d ml docker compose build ml --push