summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2017-10-13 11:09:53 (GMT)
committerBen Brown <ben.brown@codethink.co.uk>2017-10-13 12:21:16 (GMT)
commitb19a39d84ad838c5626c2c327d84badc9557bd55 (patch)
treee1e85f020275b715df86bf459764493660f77bd6
parentdec9aa5f72452bbee35ec875602dc2f8698f2fda (diff)
downloaddefinitions-b19a39d84ad838c5626c2c327d84badc9557bd55.tar.gz
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.
-rw-r--r--.gitlab-ci.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b15cc9f..26bb2c4 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: