Edit file File name : .gitlab-ci.yml Content :stages: - deploy before_script: # Ensure ssh-agent is available - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - eval $(ssh-agent -s) # Add the private SSH key - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - # Set up SSH known hosts - mkdir -p ~/.ssh - chmod 700 ~/.ssh - ssh-keyscan -H alkashier.com >> ~/.ssh/known_hosts deploy_live_to_webuzo: stage: deploy only: - live_alkashier # Run this job only when changes are merged into the dev_alkashier branch script: # Navigate to the repo directory and pull the latest changes - ssh root@alkashier.com "cd /home/freskaap/alkashier.com && git config --global --add safe.directory /home/freskaap/alkashier.com && git pull origin live_alkashier" Save