SHARE
TWEET

Untitled

a guest Jul 16th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. image: node:10.15.3
  2.  
  3. pipelines:
  4.   branches:
  5.     <branch-name>:
  6.       - step:
  7.           caches:
  8.             - node
  9.           script: # Modify the commands below to build your repository.
  10.             - apt-get update && apt-get install -y rsync
  11.             - ssh-keyscan -H $SSH_SERVER_IP >> ~/.ssh/known_hosts
  12.             - cd $BITBUCKET_CLONE_DIR
  13.             - rsync -r -v -e ssh . $SSH_SERVER_USER@$SSH_SERVER_IP:/var/www/<repo-name> --delete-before --exclude '.git'
  14.             - ssh $SSH_SERVER_USER@$SSH_SERVER_IP 'cd /var/www/<repo-name> && npm install'
  15.             - ssh $SSH_SERVER_USER@$SSH_SERVER_IP 'cd /var/www/<repo-name> && npm run build'
  16.             - ssh $SSH_SERVER_USER@$SSH_SERVER_IP 'sudo service nginx restart'
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