diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index aafd444998264822066dc6c75325fff27f9416df..2ffaae5159cd9571390a20750a9efaf2477b695e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
 before_script:
+  - echo "$CI_JOB_TOKEN" | docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin
   - docker pull git.ia2.inaf.it:5050/hotwheels/gitlab-profile/mkdir
   - |
     docker build --no-cache -t hw -f - . <<EOF