on master help sign in
Add fallback cache's to circle ci.
1ea5c66Pranay Sashank
.circleci/config.yml+6−1
@@ -118,7 +118,12 @@ project-preinstall: &project-preinstall
118restore: &restore
118restore: &restore
119 # Needs to happen after installing ca-certificates
119 # Needs to happen after installing ca-certificates
120 restore_cache:
120 restore_cache:
121+ keys:
121− key: v1-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
122+ - v1-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
123+ # Fallback to master branch's cache.
124+ - v1-{{ .Environment.CIRCLE_JOB }}-master
125+ # Fallback to any branch's cache.
126+ - v1-{{ .Environment.CIRCLE_JOB }}-
122
127
123save: &save
128save: &save
124 save_cache:
129 save_cache: