diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b2598bd6341ddc6e982820c16705947b972edcf3..b52d6a75adbfe562176c3dd07fe8a3ea4011aa19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -167,7 +167,7 @@ test:
       - docker-compose -f .docker/docker-compose.yml down
 
         # Store mariadb image
-      - if [ ! -f ".gistlab-ci.yml" ]; then
+      - if [ ! -f "${MARIADBVERSION}.tar" ]; then
            time docker save $MARIADBVERSION > /image-cache/$MARIADBVERSION.tar || true;
         fi;