Skip to content

Instantly share code, notes, and snippets.

@sovanesyan
Created October 18, 2017 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sovanesyan/f3773bfb91d0d5356eebcce28e6be879 to your computer and use it in GitHub Desktop.
Save sovanesyan/f3773bfb91d0d5356eebcce28e6be879 to your computer and use it in GitHub Desktop.
- 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