Hotfix make docker images building optional (#6309)

* Make docker build optional

* Fix syntax error
This commit is contained in:
Simon Mo 2019-11-27 18:52:21 -08:00 committed by Edward Oakes
parent 31a0b11e16
commit dd80c6e6d4
2 changed files with 3 additions and 2 deletions

View file

@ -86,7 +86,8 @@ matrix:
- ./ci/suppress_output docker run --rm -w /ray -v `pwd`:/ray $MOUNT_BAZEL_CACHE -ti rayproject/arrow_linux_x86_64_base:latest /ray/python/build-wheel-manylinux1.sh
- $TRAVIS_BUILD_DIR/ci/travis/build-autoscaler-images.sh
# Ignore any error for successful wheel uploads
- $TRAVIS_BUILD_DIR/ci/travis/build-autoscaler-images.sh || true
script:
- if [ $RAY_CI_LINUX_WHEELS_AFFECTED != "1" ]; then exit; fi

View file

@ -25,7 +25,7 @@ if [[ "$TRAVIS" == "true" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
docker push ray-project/autoscaler:$commit_sha
# We have a branch build, e.g. release/v0.7.0
if [[ "$TRAVIS_BRANCH" != "master" ]] then
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
docker tag ray-project/autoscaler:$commit_sha ray-project/autoscaler:$TRAVIS_BRANCH
docker push ray-project/autoscaler:$TRAVIS_BRANCH
else