Skip to content

Commit

Permalink
[ci] Invalidate CircleCI caches
Browse files Browse the repository at this point in the history
because we changed the user inside the container which resulted
in wrong user permission errors.
To invalidate the cache in CircleCI we need to change the cache key.
  • Loading branch information
ChrisBr committed Jun 7, 2018
1 parent b1eec46 commit 93709c2
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 93709c2

Please sign in to comment.