From a8e8416d4807934cfe55572202f0fba178250026 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Tue, 3 Dec 2019 19:26:38 +0530 Subject: [PATCH] Chore: Cache gemfiles in circle builds [#338] (#343) --- .circleci/config.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 411817e92..235289a2f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,15 +39,14 @@ jobs: - restore_cache: keys: - # when lock file changes, use increasingly general patterns to restore cache - - v1-gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }} - - v1-gem-cache-{{ arch }}-{{ .Branch }}- - - v1-gem-cache-{{ arch }}- - - run: bundle install && bundle clean + - chatwoot-bundle-{{ checksum "Gemfile.lock" }} + - chatwoot-bundle + + - run: bundle install --frozen --path ~/.bundle - save_cache: paths: - ~/.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