Skip to content

Commit

Permalink
handle error of docker buildx
Browse files Browse the repository at this point in the history
DCO 1.1 Signed-off-by: Tatsuya Ishihara <[email protected]>
  • Loading branch information
tatsuya-ishihara committed Nov 27, 2024
1 parent e08235e commit 93c367e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bake-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ com="docker buildx bake -f docker-compose.yaml $platform_option $tag_option driv
export BASE_IMAGE=$base_name
echo $com
eval $com
if [[ $? -ne 0 ]]; then
echo "failed to build image"
exit 1
fi

# reset buildx builder to default
docker buildx use default
Expand Down

0 comments on commit 93c367e

Please sign in to comment.