diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b7d9173d2fe6a84b6f97808e2ab3d34c057e2664..993ad346ff394be6fda94fef4b6af20c4f6afd90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,5 @@
 stages:
   - build
-  - deploy
   - deploy_to_test
   - deploy_to_production
 
@@ -17,7 +16,6 @@ docker-build:
     - docker push "$CI_REGISTRY_IMAGE"
 #  only:
 #    - master
-#    - release
 
 
 # deploy master or branch to 'sdc-dev.astron.nl'
@@ -33,6 +31,7 @@ docker-deploy-to-test:
     - ssh-keyscan dop814.astron.nl >> ~/.ssh/known_hosts
     - chmod 644 ~/.ssh/known_hosts
   script:
+    - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY"
     - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
     - ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p atdb -f /docker_compose/atdb-ldv/docker-compose-dev-cd.yml up -d"
   when: manual