From 6d8de359735ffd3a4e64b619b949653c09fb569a Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 22 Sep 2018 20:21:10 +0200 Subject: [PATCH] Only cache final image. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 010bc9c..d38b1f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: