diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-10-04 18:00:12 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-10-04 18:00:12 +0100 |
commit | 2f051c93b708ff01a333f560995fa32b2ffde4fb (patch) | |
tree | 580e8916284835140b8f7fb48581b6cfa5b03021 /.gitlab-ci.yml | |
parent | 1e7b235b14b232c04ed28fdd3d60b51866484332 (diff) | |
download | definitions-2f051c93b708ff01a333f560995fa32b2ffde4fb.tar.gz |
.gitlab-ci.yml: Use CI_PROJECT_DIR instead of $(pwd)
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 758ed436..7588d628 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,12 @@ image: buildstream/buildstream-fedora:latest variables: + # Store everything under the /builds directory. This is a separate Docker + # volume. Note that GitLab CI will only cache stuff inside the build + # directory. + XDG_CACHE_HOME: "${CI_PROJECT_DIR}/cache" + YBD_base: "${CI_PROJECT_DIR}/cache/ybd_base" + YBD_gits: "${CI_PROJECT_DIR}/cache/ybd_base/gits" GET_SOURCES_ATTEMPTS: 3 cache: @@ -12,14 +18,6 @@ cache: - cache/buildstream/sources/ before_script: - # 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 - | cd ~/buildstream |