image: node:6.9.4
branches: # Pipelines that run automatically on a commit to a branch
master:
- step:
caches:
- node
script:
- apt-get update
- apt-get -qq install git-ftp
- apt-get install -y ssh
- git ftp push --user $FTP_LOGIN --passwd $FTP_PASSWORD ftp://$FTP_HOST/public_html/
- ssh root@host.ru ./deploy.sh
#!/usr/bin/env bash
npm install