Skip to content

Commit 44f73d7

Browse files
author
Ives van Hoorne
committed
Fix immutable cache keys of CircleCI
1 parent 3d1f072 commit 44f73d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
name: Build Application
4444
command: yarn build:prod
4545
- save_cache:
46-
key: v1-prod-app-build-cache-{{ .Environment.CIRCLE_BRANCH }}
46+
key: v1-prod-app-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
4747
paths:
4848
- ./packages/app/www
4949
- save_cache:
50-
key: v1-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}
50+
key: v1-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
5151
paths:
5252
- ./www
5353
- store_artifacts:
@@ -104,7 +104,7 @@ jobs:
104104
- restore_cache:
105105
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
106106
- restore_cache:
107-
key: v1-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}
107+
key: v1-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
108108
- add_ssh_keys:
109109
fingerprints:
110110
- "f7:f1:e6:60:96:24:d9:cd:1b:8b:c0:34:e7:ee:fa:82"

0 commit comments

Comments
 (0)