diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b4576663..1b08d733 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,23 @@ image: buildstream/buildstream-fedora:latest variables: + # Store cache in the shared Docker volume, which gives us much more space + # than if we store it in the root disk + XDG_CACHE_HOME: "/cache" YBD_base: "/cache/ybd_base" YBD_gits: "/cache/ybd_base/gits" + GET_SOURCES_ATTEMPTS: 3 cache: paths: - - "${YBD_gits}/" - - "/cache/buildstream/sources/" + - ."${YBD_gits}/" + - "./cache/buildstream/sources/" before_script: + # GitLab CI won't cache stuff outside the build directory, so we trick it! + - ln -s /cache ./cache + # Update to latest BuildStream - | cd ~/buildstream @@ -19,9 +26,6 @@ before_script: pip3 install . cd - - # Store cache in the shared Docker volume - - export XDG_CACHE_HOME=/cache - # Create ~/.ssh for storing keys - mkdir -p ~/.ssh |