SHARE
TWEET

Untitled

a guest Sep 15th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. before_script:
  2.   - apt-get update -qq
  3.   - apt-get install -qq git
  4.   # Setup SSH deploy keys
  5.   - 'which ssh-agent || ( apt-get install -qq openssh-client )'
  6.   - eval $(ssh-agent -s)
  7.   - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  8.   - mkdir -p ~/.ssh
  9.   - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
  10.    
  11. deploy_staging:
  12.   type: deploy
  13.   environment:
  14.     name: staging
  15.     url: xdnainteractive.com
  16.   script:
  17.     - ssh xdna1@xdnainteractive.com "cd /home/xdna1/ngin.xdnainteractive.com/dashboard && git checkout master && git pull origin master && exit"
  18.   only:
  19.     - master
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top