ci: restore cache for deploy job

The last few runs of deploy took 3m33s, 3m40s, and 4m27s. It should be
noticeably faster after we restore the cache.
pull/10616/head
Mark Rushakoff 2018-08-28 14:57:17 -07:00 committed by Mark Rushakoff
parent 8a6749fc1c
commit a177069b49
1 changed files with 19 additions and 0 deletions

View File

@ -70,9 +70,28 @@ jobs:
deploy:
docker:
- image: circleci/golang:1.11-node-browsers
environment:
GOCACHE: /tmp/go-cache
DEPCACHEDIR: /tmp/dep-cache
working_directory: /go/src/github.com/influxdata/platform
steps:
- checkout
# Speed up `make nightly` by restoring caches from previous runs.
- restore_cache:
name: Restoring dep cache
keys:
- platform-depcache-{{ checksum "Gopkg.lock" }}
- platform-depcache-
- restore_cache:
name: Restoring GOCACHE
keys:
- platform-gocache- # Just match the most recent Go cache.
- restore_cache:
name: Restore Yarn package cache
keys:
- chronograf-yarn-packages-{{ checksum "chronograf/ui/yarn.lock" }}
- setup_remote_docker
- run: |
docker login -u "$QUAY_USER" -p $QUAY_PASS quay.io