Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SshPipe = require('./ssh-pipe.js');
- ( async ( )=>{
- const production = new SshPipe({
- connent: {
- host: '******',
- user: '****',
- pass: '****',
- agent: process.env.SSH_AUTH_SOCK,
- agentForward: true,
- baseDir: '/home/var/www'
- },
- env: { BRANCH: "master" }
- })
- production.description;
- await production.start({
- [
- {
- title:"git load.",
- step:[
- "git fetch",
- "git checkout .",
- "git checkout $BRANCH",
- "git clean -fd",
- "git pull",
- "git reset --hard origin/$BRANCH"
- ]
- }
- ]
- });
- production.Report
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement