From add3589451d8efdce65aa2c268070bbfab271cde Mon Sep 17 00:00:00 2001 From: Jason Aden Date: Mon, 11 Dec 2017 16:02:20 -0800 Subject: [PATCH] ci: use container version in cache key (#20952) PR Close #20952 --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fd6ebce638..d7713e1342 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ anchor_1: &job_defaults docker: ## IMPORTANT # If you change this, also change the version of com_github_bazelbuild_buildtools - # in the /WORKSPACE file + # in the /WORKSPACE file and the cache keys below - image: angular/ngcontainer:0.0.8 ## IMPORTANT @@ -36,7 +36,7 @@ jobs: (echo "BUILD files not formatted. Please run ''yarn buildifier''" ; exit 1)' - restore_cache: - key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}-0.0.8 - run: yarn install --frozen-lockfile --non-interactive - run: ./node_modules/.bin/gulp lint @@ -47,13 +47,13 @@ jobs: - checkout: <<: *post_checkout - restore_cache: - key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}-0.0.8 - run: bazel info release - run: bazel run @yarn//:yarn - run: bazel build --config=ci packages/... - run: bazel test --config=ci packages/... @angular//... - save_cache: - key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: angular-{{ .Branch }}-{{ checksum "yarn.lock" }}-0.0.8 paths: - "node_modules"