Skip to content

Commit 41e7f1b

Browse files
feat: catching docker error codes
1 parent 8b199c0 commit 41e7f1b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

go.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@ export IP_ADDRESS=$(/sbin/ip -o -4 addr list eno2 | awk '{print $4}' | cut -d/ -
22

33
cp /secrets/certs/* nginx/filesystem/etc/nginx/certs
44
docker compose build --build-arg IP_ADDRESS=$IP_ADDRESS
5+
if [ "$?" != "0" ]
6+
then
7+
exit 1
8+
fi
9+
510
docker compose down
611
docker compose up -d

0 commit comments

Comments
 (0)