Skip to content

Commit

Permalink
Use branch in every cache key
Browse files Browse the repository at this point in the history
Closes gh-3889
  • Loading branch information
jonatan-ivanov committed Jun 8, 2023
1 parent 5766de9 commit 9d0958e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ commands:
steps:
- checkout
- restore_cache:
keys:
- gradle-dependencies-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
key: gradle-dependencies-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
- run:
name: downloadDependencies
command: ./gradlew downloadDependencies --console=plain
Expand Down Expand Up @@ -97,7 +96,7 @@ jobs:
steps:
- checkout
- restore_cache:
key: gradle-dependencies-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
key: gradle-dependencies-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
- deploy:
name: Deployment
command: sh ./gradle/deploy.sh
Expand Down

0 comments on commit 9d0958e

Please sign in to comment.