diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47a1fbe6214861bed36cfeee808fe95cf7b23833..0f9e87de4776b22abcc5088efac65438cd22ce24 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,9 +33,13 @@ stages:
 pica-ci-base:
   stage: ci-base
   tags: [build]
+  before_script:
+    - echo $REGISTRY_PROD_PASSWORD | docker login $REGISTRY_PROD -u $REGISTRY_PROD_USERNAME --password-stdin
   script:
     - docker build -f pica-ci-base/Dockerfile . -t $REGISTRY_PROD/pica-ci-base:latest
     - docker push $REGISTRY_PROD/pica-ci-base:latest
+  after_script:
+    - docker logout $REGISTRY_PROD
   only:
     changes:
       - "pica-ci-base/*"
diff --git a/pica-ci-base/Dockerfile b/pica-ci-base/Dockerfile
index 669fc7629202d0390da0e39905d14f727a08b66c..27362e267c4032a4a7b956a6eeb639971c6caa1a 100644
--- a/pica-ci-base/Dockerfile
+++ b/pica-ci-base/Dockerfile
@@ -1,12 +1,12 @@
 FROM docker:19.03.0
 RUN apk update && \
-    apk add build-base \
-    git \
-    iproute2 \
-    libffi-dev \
-    openssl-dev \
-    py-pip \
-    python2-dev \
-    sed \
-    wget \
-    && pip install docker-compose
+  apk add build-base \
+  git \
+  iproute2 \
+  libffi-dev \
+  openssl-dev \
+  py-pip \
+  python2-dev \
+  sed \
+  wget \
+  && pip install docker-compose