3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 19:17:19 +00:00

stop on first error with bash command

This commit is contained in:
rubyowo 2023-07-03 18:49:02 +04:00
parent 63c19025ef
commit cdf848817f
No known key found for this signature in database

View file

@ -1,13 +1,10 @@
#!/bin/bash
set -e
echo Updating Zeppelin...
docker compose -f docker-compose.production.yml stop
git pull
if [ $? -ne 0 ]; then
echo "git pull failed. exiting."
exit 1
fi
docker compose -f docker-compose.production.yml build
docker compose -f docker-compose.production.yml up -d