Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
chore: include CIRCLE_TAG in the cache key
Browse files Browse the repository at this point in the history
to avoid deploy steps potentially picking up a previous merge build
that wrote to the cache out of order
  • Loading branch information
pjenvey committed Apr 13, 2020
1 parent c695232 commit 309e6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
name: docker save app:buildcpy
command: docker save -o /cache/dockercpy.tar "app:buildcpy"
- save_cache:
key: v1-{{ .Branch }}-{{epoch}}
key: v1-{{ .Branch }}-{{ .Environment.CIRCLE_TAG }}-{{ epoch }}
paths:
- /cache/dockerpypy.tar
- /cache/dockercpy.tar
Expand All @@ -56,7 +56,7 @@ jobs:
steps:
- setup_remote_docker
- restore_cache:
key: v1-{{.Branch}}
key: v1-{{ .Branch }}-{{ .Environment.CIRCLE_TAG }}
- run:
name: Restore PyPy Docker image cache
command: docker load -i /cache/dockerpypy.tar
Expand Down

0 comments on commit 309e6b9

Please sign in to comment.