diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d0401acd230f75c38ebbd9a89f78b3e80bd19eee..d3f9783840a45c956d3d597df4d055696d52816d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -66,6 +66,7 @@ build:
 test:
   stage: build
   before_script:
+    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
     - chmod +x env_setup.sh wait_for_container.sh
     - ./env_setup.sh
     - mkdir data