40
loading...
This website collects cookies to deliver better user experience
pipelines:
default:
- step:
caches:
- node
- pip
script:
- npm install
- npm test
branches:
develop:
- step:
script:
- apt-get update
- ssh [email protected] /var/www/home/scripts/devCdScript.sh
staging:
- step:
script:
- apt-get update
- ssh [email protected] /var/www/home/scripts/stgCdScript.sh
master:
- step:
script:
- apt-get update
- ssh [email protected] /var/www/home/scripts/prodCdScript.sh
#!/bin/bash
cd /var/www/home
git pull;
if [ $? -eq 0 ]; then
echo 'git pull success.'
else
echo 'git pull failure.'
exit 1;
fi
npm install;
npm run build;