From b19a39d84ad838c5626c2c327d84badc9557bd55 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 13 Oct 2017 12:09:53 +0100 Subject: Use pull policy for deploy stages By default GitLab CI fetches and re-pushes cache, given deploy stages won't cause the git repos to change, only fetch. --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b15cc9fd..26bb2c47 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -104,7 +104,12 @@ ybd-build-system-x86_64-chroot-deploy: <<: *ybd_before_script script: - ybd/ybd.py clusters/build-system-x86_64-chroot-deploy.morph x86_64 - <<: *ybd_cache + cache: + # GitLab defined default key is "default". Reuse this for ybd. + key: default + policy: pull + paths: + - cache/ybd_base/gits artifacts: name: "${CI_BUILD_NAME}-${CI_BUILD_REF}" paths: @@ -179,7 +184,12 @@ ybd-minimal-system-x86_64-chroot-deploy: <<: *ybd_before_script script: - ybd/ybd.py clusters/minimal-system-x86_64-chroot-deploy.morph x86_64 - <<: *ybd_cache + cache: + # GitLab defined default key is "default". Reuse this for ybd. + key: default + policy: pull + paths: + - cache/ybd_base/gits artifacts: name: "${CI_BUILD_NAME}-${CI_BUILD_REF}" paths: -- cgit v1.2.1