image: malikandemir/laravel-application:0.1.0before_script: - apt-get update -qq - apt-get install -qq git # Setup SSH deploy keys - ‘which ssh-agent || ( apt-get install -qq openssh-client )’ - eval $(ssh-agent -s) - ssh-add <(echo “$SSH_PRIVATE_KEY”) - mkdir -p ~/.ssh - ’[[ -f /.dockerenv ]] && echo -e “Host *\\tStrictHostKeyChecking no\” ~/.ssh/config’ deploy_staging: stage: build environment: name: staging url: example.com’ script: - ssh user@host “cd /home/testpaysystem/ && git pull && npm run dev && exit” only: - main
git 11 Ekim 2022
gitlab ci cd sample ssh
#gitlab