diff --git a/templates/gitlab-ci.yml b/templates/gitlab-ci.yml
index 36cfa0900a03f92c95bddac8b0b7ed2c017999cf..31148169ab3b298e7993cf4becdfc6287ec60400 100644
--- a/templates/gitlab-ci.yml
+++ b/templates/gitlab-ci.yml
@@ -42,7 +42,7 @@ stages:
   variables: &linux_variables
     CONDA_FOLDER: "/opt/miniconda"
   cache:
-    key: "$CI_JOB_NAME"
+    key: "linux-cache"
     paths:
       - ${CONDA_ENVS_PATH}/.pkgs/*.tar.bz2
       - ${CONDA_ENVS_PATH}/.pkgs/urls.txt
@@ -59,7 +59,7 @@ stages:
   variables: &macosx_variables
     CONDA_FOLDER: "${CI_PROJECT_DIR}/${CONDA_ENVS_PATH}"
   cache:
-    key: "$CI_JOB_NAME"
+    key: "macosx-cache"
     paths:
       - miniconda.sh
       - ${CONDA_ENVS_PATH}/pkgs/*.tar.bz2