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