Skip to content

Commit f74efc4

Browse files
Merge pull request #90 from nullinside-development-group/feat/error
feat: catching docker error codes
2 parents 8b199c0 + 41e7f1b commit f74efc4

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)