Only cache final image.

This commit is contained in:
Maschell 2018-09-22 20:21:10 +02:00
parent 6fd96ec8f8
commit 6d8de35973

View File

@ -4,6 +4,7 @@ before_cache:
# Save tagged docker images see https://github.com/travis-ci/travis-ci/issues/5358#issuecomment-248915326
- >
mkdir -p $HOME/docker && docker images -a --filter='dangling=false' --format '{{.Repository}}:{{.Tag}} {{.ID}}'
| grep 'wups-loader-builder'
| xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
cache: