diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 50c49f7f9d87725249822ad56bff20c8aae6426c..14756da2ab7c4334e02f9c8fe9f000eb3dc71eff 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -130,7 +130,7 @@ deploy:
   stage: deploy
   # dependencies:
   #   - 'docker-push'
-  before_script:
+  script:
     - apt-get update -qy
     - apt-get install -y rsync openssh-client
     - mkdir -p ~/.ssh
@@ -139,7 +139,6 @@ deploy:
     - eval "$(ssh-agent -s)"
     - ssh-add ~/.ssh/id_rsa
     - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-  script:
     - echo "Hello world"
     - ssh contDeploy@codeability-austria -p 1022 -f "(cd /home/michael/gitsearch git pull && cd src/main/docker/; GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up  -d --no-deps --build gitsearch-app)"
   when: always