gitlab-ci: Only pull/push cache contents in build+test stage jobs
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 26 Mar 2019 17:35:59 +0000 (18:35 +0100)
committerMichel Dänzer <michel@daenzer.net>
Wed, 27 Mar 2019 09:05:43 +0000 (10:05 +0100)
The containers-build stage job doesn't use the cache, so this might save
some wasted time for it.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci.yml

index 449516ecab2d41b778bdc02f2fd4fd92ce058c5b..5e15f1e2f943e10389c77f3569c55b72579df7a3 100644 (file)
@@ -20,10 +20,6 @@ variables:
   UBUNTU_IMAGE: "$CI_REGISTRY_IMAGE/ubuntu:$UBUNTU_TAG"
   UBUNTU_IMAGE_MAIN: "registry.freedesktop.org/mesa/mesa/ubuntu:$UBUNTU_TAG"
 
-cache:
-  paths:
-    - ccache
-
 stages:
   - containers-build
   - build+test
@@ -69,6 +65,9 @@ ubuntu:
   extends: .ci-run-policy
   image: $UBUNTU_IMAGE
   stage: build+test
+  cache:
+    paths:
+      - ccache
   artifacts:
     when: on_failure
     untracked: true