From 9e659145c1b10d1e416bdb1f5cc0711f0fba299b Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Fri, 17 May 2019 10:50:37 -0700 Subject: [PATCH] Find / stash (new) gocache (#620) - (In)validate cache by branch --- .circleci/config.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 11de47e2f..52cc12452 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,6 +58,7 @@ jobs: MINIKUBE_WANTUPDATENOTIFICATION: false MINIKUBE_WANTREPORTERRORPROMPT: false SKAFFOLD_VERSION: v0.18.0 + GOCACHE: /home/circleci/.cache/go steps: - checkout - run: @@ -99,17 +100,28 @@ jobs: name: Watch nodes command: kubectl get nodes -o json --watch background: true + - restore_cache: keys: - - v1-pkg-cache + - pkg-cache-{{ .Branch }} + - go-cache-{{ .Branch }} + - run: name: Run the end-to-end test suite command: | make e2e + - save_cache: - key: v1-pkg-cache + key: pkg-cache-{{ .Branch }} paths: - "/go/pkg" + - "/home/circleci/go/" + + - save_cache: + key: go-cache-{{ .Branch }} + paths: + - "/home/circleci/.cache/go" + - run: name: Collect logs on failure from vkubelet-mock-0 command: |