diff --git a/.gitlab/ci/templates/srb2ci.yml b/.gitlab/ci/templates/srb2ci.yml
index f705a52a9756103fd31ed32e3b26f5d4072be2b9..3716d9df921407cb29081af301a5b6a3d92db459 100644
--- a/.gitlab/ci/templates/srb2ci.yml
+++ b/.gitlab/ci/templates/srb2ci.yml
@@ -12,7 +12,7 @@
 
     - key: apt-$CI_JOB_IMAGE
       paths:
-        - apt-cache
+        - build/apt-cache
       unprotect: true
 
   before_script:
@@ -37,7 +37,7 @@
     - - |
           # apt_conf
           echo -e "\e[0Ksection_start:`date +%s`:apt_conf[collapsed=true]\r\e[0KSetting up APT conf"
-      - export APT_CACHE_DIR=`pwd`/apt-cache
+      - export APT_CACHE_DIR=$CI_PROJECT_DIR/build/apt-cache
       - mkdir --parents --verbose $APT_CACHE_DIR/partial/
       - touch /etc/apt/apt.conf.d/99build
       - |