Skip to content

Commit 5d2434e

Browse files
committed
chore: fix cache key to include CIRCLE_TAG
ensuring workflow steps read artifacts from the right place
1 parent 9843e23 commit 5d2434e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ jobs:
197197
steps:
198198
- setup_remote_docker
199199
- restore_cache:
200-
key: v1-{{.Branch}}
200+
key: v1-{{ .Branch }}-{{ .Environment.CIRCLE_TAG }}
201201
- run:
202202
name: Restore Docker image cache
203203
command: docker load -i /home/circleci/cache/docker.tar
@@ -212,7 +212,7 @@ jobs:
212212
steps:
213213
- setup_remote_docker
214214
- restore_cache:
215-
key: v1-{{.Branch}}
215+
key: v1-{{ .Branch }}-{{ .Environment.CIRCLE_TAG }}
216216
- run:
217217
name: Restore Docker image cache
218218
command: docker load -i /home/circleci/cache/docker.tar

0 commit comments

Comments
 (0)