Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from praekeltfoundation/cache-from
Browse files Browse the repository at this point in the history
Build with Docker's new --cache-from
  • Loading branch information
JayH5 committed Mar 7, 2017
2 parents 29df6a4 + c4e96af commit 6724867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -17,9 +17,11 @@ before_install:
before_script:
- image="praekeltfoundation/marathon-acme"
- version="$(sed -nE 's/\s*marathon-acme\s*==\s*([^\s\;]+).*/\1/p' requirements.txt)"
# Pull the existing image to use as a build cache
- docker pull "$image:$version"

script:
- docker build --tag "$image" .
- docker build --pull --cache-from "$image:$version" --tag "$image" .
- ./test.py "$image"

after_script:
Expand Down

0 comments on commit 6724867

Please sign in to comment.