Skip to content

Commit

Permalink
invalidate ci cache keys because images are updated (#6738)
Browse files Browse the repository at this point in the history
* invalidate ci cache keys because images are updated

* use different cache key for centos_build
  • Loading branch information
icehess authored Sep 17, 2021
1 parent 6395b7f commit c1a8734
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
at: .
- restore_cache:
keys:
- deps-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- deps-v2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- run:
name: Calculating dependency hash for CircleCI cache
command: |
Expand All @@ -156,7 +156,7 @@ jobs:
name: Making dependencies
command: make deps
- save_cache:
key: deps-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
key: deps-v2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
paths:
- deps/
- persist_to_workspace:
Expand All @@ -171,7 +171,7 @@ jobs:
at: .
- restore_cache:
keys:
- deps-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- deps-v2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- run:
name: Compiling the project
command: JOBS="2" make
Expand All @@ -187,7 +187,7 @@ jobs:
at: .
- restore_cache:
keys:
- deps-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- deps-v2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- run:
name: Compiling for unit test enviornment
command: ERLC_OPTS='-DPROPER' make compile-test
Expand Down Expand Up @@ -260,15 +260,15 @@ jobs:
at: .
- restore_cache:
keys:
- plt-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- plt-v2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- run:
name: Building plt file
command: make build-plt
- run:
name: Dailyzing changed Erlang files
command: make dialyze-changed
- save_cache:
key: plt-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
key: plt-v2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
paths:
- .kazoo.plt

Expand Down Expand Up @@ -331,15 +331,15 @@ jobs:
- checkout
- restore_cache:
keys:
- deps-centos7-v3.2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- deps-packager-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
- run:
name: Making dependencies
command: |
md5sum make/deps.mk || true
ls -al make || true
make deps
- save_cache:
key: deps-centos7-v3.2-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
key: deps-packager-v1-{{ checksum "make/deps.mk" }}-{{ checksum "/usr/local/lib/erlang/releases/RELEASES" }}
paths:
- deps/
- .git/.kz_deps_hash
Expand Down

0 comments on commit c1a8734

Please sign in to comment.