a guest Sep 15th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- - 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)
- - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- - mkdir -p ~/.ssh
- - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- type: deploy
- name: staging
- url: xdnainteractive.com
- - ssh firstname.lastname@example.org "cd /home/xdna1/ngin.xdnainteractive.com/dashboard && git checkout master && git pull origin master && exit"
- - master
RAW Paste Data