Created
October 18, 2017 10:12
-
-
Save sovanesyan/f3773bfb91d0d5356eebcce28e6be879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- restore_cache: | |
keys: | |
- recorder-{{ .Branch }} | |
paths: | |
- /caches/app.tar | |
- run: | |
name: Load Docker image layer cache | |
command: | | |
set +o pipefail | |
docker load -i /caches/app.tar | true | |
- run: | |
name: Build application Docker image | |
command: | | |
cd recorder | |
docker build --cache-from=app -t app . | |
- run: | |
name: Save Docker image layer cache | |
command: | | |
mkdir -p /caches | |
docker save -o /caches/app.tar app | |
- save_cache: | |
key: recorder-{{ .Branch }}-{{ epoch }} | |
paths: | |
- /caches/app.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment