mirror of
https://github.com/wiiu-env/WiiUPluginLoaderGUI.git
synced 2024-11-22 09:09:17 +01:00
Add docker image caching
This commit is contained in:
parent
eb298a7cc1
commit
6fd96ec8f8
18
.travis.yml
18
.travis.yml
@ -1,10 +1,28 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
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}}'
|
||||||
|
| xargs -n 2 -t sh -c 'test -e $HOME/docker/$1.tar.gz || docker save $0 | gzip -2 > $HOME/docker/$1.tar.gz'
|
||||||
|
|
||||||
|
cache:
|
||||||
|
bundler: true
|
||||||
|
directories:
|
||||||
|
- $HOME/docker
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
# Load cached docker images
|
||||||
|
- if [[ -d $HOME/docker ]]; then ls $HOME/docker/*.tar.gz | xargs -I {file} sh -c "zcat {file} | docker load"; fi
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- p7zip-full
|
- p7zip-full
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- docker build . -t wups-loader-builder
|
- docker build . -t wups-loader-builder
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user