Skip to content

Commit

Permalink
Merge pull request #383 from platanus/f/ci-clearable-cache
Browse files Browse the repository at this point in the history
feat(ci): add env var to cache key to allow clearing it
  • Loading branch information
rjherrera authored Aug 30, 2021
2 parents 75dab07 + 415026b commit 33a97fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/potassium/assets/.circleci/config.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ commands:

- restore_cache:
keys:
- bundle-dependencies-{{ checksum "Gemfile.lock" }}
- bundle-dependencies-{{ .Environment.BUNDLE_CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
- bundle-dependencies-

- restore_cache:
keys:
- yarn-dependencies-{{ checksum "yarn.lock" }}
- yarn-dependencies-{{ .Environment.YARN_CACHE_VERSION }}-{{ checksum "yarn.lock" }}
- yarn-dependencies-

- run:
Expand All @@ -62,12 +62,12 @@ commands:
yarn install --frozen-lockfile

- save_cache:
key: bundle-dependencies-{{ checksum "Gemfile.lock" }}
key: bundle-dependencies-{{ .Environment.BUNDLE_CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

- save_cache:
key: yarn-dependencies-{{ checksum "yarn.lock" }}
key: yarn-dependencies-{{ .Environment.YARN_CACHE_VERSION }}-{{ checksum "yarn.lock" }}
paths:
- node_modules

Expand Down

0 comments on commit 33a97fd

Please sign in to comment.