Do not ignore docker history command errors. (#345)
Fixes googlecartographer/cartographer#292master
parent
eb804c1182
commit
841b17f393
|
@ -23,7 +23,8 @@ set -o pipefail
|
||||||
|
|
||||||
if [[ ${TRAVIS_BRANCH} == "master" ]] &&
|
if [[ ${TRAVIS_BRANCH} == "master" ]] &&
|
||||||
[[ ${TRAVIS_PULL_REQUEST} == "false" ]]; then
|
[[ ${TRAVIS_PULL_REQUEST} == "false" ]]; then
|
||||||
mkdir -p $(dirname ${DOCKER_CACHE_FILE});
|
mkdir -p $(dirname ${DOCKER_CACHE_FILE})
|
||||||
docker save $(docker history -q cartographer_ros:${ROS_RELEASE} |
|
IMAGE_NAMES=$(docker history -q cartographer_ros:${ROS_RELEASE} | grep -v '<missing>')
|
||||||
grep -v '<missing>') | gzip > ${DOCKER_CACHE_FILE};
|
docker save ${IMAGE_NAMES} | gzip > ${DOCKER_CACHE_FILE}.new
|
||||||
|
mv ${DOCKER_CACHE_FILE}.new ${DOCKER_CACHE_FILE}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue