diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1b08d733..758ed436 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,24 @@ 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/" + # Store all the downloaded git and ostree repos in the distributed cache. + # This saves us fetching them from git.baserock.org and further afield + # on every build. + - cache/ybd_base/gits + - cache/buildstream/sources/ before_script: - # GitLab CI won't cache stuff outside the build directory, so we trick it! - - ln -s /cache ./cache + # Store everything under the /builds directory. This is a separate Docker + # volume. Note that GitLab CI will only cache stuff inside the build + # directory. + - | + export XDG_CACHE_HOME="$(pwd)/cache" + export YBD_base="$(pwd)/cache/ybd_base" + export YBD_gits="$(pwd)/cache/ybd_base/gits" # Update to latest BuildStream - | |