diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2017-10-13 12:09:53 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2017-10-13 13:21:16 +0100 |
commit | b19a39d84ad838c5626c2c327d84badc9557bd55 (patch) | |
tree | e1e85f020275b715df86bf459764493660f77bd6 | |
parent | dec9aa5f72452bbee35ec875602dc2f8698f2fda (diff) | |
download | definitions-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.yml | 14 |
1 files changed, 12 insertions, 2 deletions
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: |