mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Updated pybuilder example to use 'docker wait'
This commit is contained in:
parent
ebaa50c4c9
commit
4004e86fa9
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ if [ "$CMD" = "build" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if attach $BUILD_JOB ; then
|
if attach $BUILD_JOB ; then
|
||||||
BUILD_STATUS=`docker ps -a | sed -E -n "s/^$BUILD_JOB.*Exit ([0-9]+) *$/\1/p"`
|
BUILD_STATUS=`docker wait $BUILD_JOB`
|
||||||
if [ -z "$BUILD_STATUS" -o "$BUILD_STATUS" != 0 ]; then
|
if [ -z "$BUILD_STATUS" -o "$BUILD_STATUS" != 0 ]; then
|
||||||
echo "Build failed"
|
echo "Build failed"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue