ci: use container version in cache key (#20952)

PR Close #20952
This commit is contained in:
Jason Aden 2017-12-11 16:02:20 -08:00
parent 81d497ce1f
commit add3589451
1 changed files with 4 additions and 4 deletions

View File

@ -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"