Chore: Cache gemfiles in circle builds [#338] (#343)

This commit is contained in:
Sojan Jose
2019-12-03 19:26:38 +05:30
committed by Pranav Raj S
parent c758c13ffb
commit a8e8416d48

View File

@@ -39,15 +39,14 @@ jobs:
- restore_cache: - restore_cache:
keys: keys:
# when lock file changes, use increasingly general patterns to restore cache - chatwoot-bundle-{{ checksum "Gemfile.lock" }}
- v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }} - chatwoot-bundle
- v1-gem-cache-{{ arch }}-{{ .Branch }}-
- v1-gem-cache-{{ arch }}- - run: bundle install --frozen --path ~/.bundle
- run: bundle install && bundle clean
- save_cache: - save_cache:
paths: paths:
- ~/.bundle - ~/.bundle
key: v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }} key: chatwoot-bundle-{{ checksum "Gemfile.lock" }}
# Only necessary if app uses webpacker or yarn in some other way # Only necessary if app uses webpacker or yarn in some other way