title: gitlab CI/CD how to execute a multiline command as shown
body: <p>I want to execute a command like below in the gitlabl CI/CD</p>
  <pre><code>ssh $DEPLOY_USER@$DEPLOY_HOST &lt;&lt;'ENDSSH'                                                                    
  set -x -o verbose;
  execute some command here
  set +x
  ENDSSH
  </code></pre>
  <p>How to add such commands in script</p>
  <pre><code>deploy-to-stage:
    stage: deploy
    before_script:
      - &quot;which ssh-agent || ( apt-get update -y &amp;&amp; apt-get install openssh-client -y )&quot;
      - eval $(ssh-agent -s)
      - echo &quot;$SSH_PRIVATE_KEY&quot; | tr -d '\r' | ssh-add - &gt; /dev/null
      - mkdir -p ~/.ssh
      - chmod 700 ~/.ssh
      - echo &quot;$SSH_KNOWN_HOSTS&quot; &gt; ~/.ssh/known_hosts
      - chmod 644 ~/.ssh/known_hosts
      - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
    script:
      -   *** HERE I WANT TO RUN THAT COMMAND ***
  </code></pre>
  <p>How can i do that</p>