Skip to content

Commit

Permalink
fix: catch docker compose error code
Browse files Browse the repository at this point in the history
  • Loading branch information
raighnew committed Sep 26, 2024
1 parent c054208 commit 3930f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ if [[ $(uname) =~ "Linux" ]]; then
sudo chown -R 1000:1000 bin
fi

compose up --remove-orphans
compose up --exit-code-from imagebuilder --remove-orphans
build_status=$?
compose rm -f
rm docker-compose.yml

if [ $build_status -ne 0 ]; then
echo "build failed"
echo "build failed with exit code $build_status"
exit 1
else
ls -R bin
Expand Down

0 comments on commit 3930f9b

Please sign in to comment.