Skip to content

Commit

Permalink
Merge pull request #5105 from ChrisBr/ci/invalidate-cache
Browse files Browse the repository at this point in the history
[ci] Invalidate CircleCI caches
  • Loading branch information
ChrisBr committed Jun 8, 2018
2 parents 50b4433 + 93709c2 commit 28c67d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
- v2-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- v2-dependencies-
- run:
name: install dependencies
command: |
cd ./src/api && bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
paths:
- ./src/api/vendor/bundle
key: v1-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
key: v2-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
- run:
name: Wait for DB
command: mysqladmin ping -h db
Expand Down Expand Up @@ -56,17 +56,17 @@ jobs:
command: git submodule update --init --recursive --remote
- restore_cache:
keys:
- v1-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
- v2-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- v2-dependencies-
- run:
name: install dependencies
command: |
cd ./src/api && bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
paths:
- ./src/api/vendor/bundle
key: v1-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
key: v2-dependencies-{{ checksum "./src/api/Gemfile.lock" }}
- run:
name: Wait for DB
command: mysqladmin ping -h db
Expand Down

0 comments on commit 28c67d5

Please sign in to comment.