1.4.0 • Published 8 years ago

node-deploy-robot v1.4.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Dependency Status devDependency Status Build Status npm version Downloads

tools

  • node-gyp build environment

development

  • npm i
  • npm run build
  • npm run tslint
  • node start.js

options

  • -m --mode [mode]
  • -p --port [port]
  • -h --host [host]

examples

  • node dist/start.js -m github -p 3000 -h 0.0.0.0

In Github, Gitlab

  1. Add a web hook for the repository, the trigger events should include comments of pull/merge request
  2. Create a robot account, and create a private access token for the account

Why no bitbucket or gogs?

Can not set private access token, and can not create comment, for now.

secure

for GIthub, create an environment variable named DEPLOY_ROBOT_ACCESS_TOKEN, for Gitlab, create an environment variable named DEPLOY_ROBOT_PRIVATE_TOKEN.

usage from nodejs

const robot = require("node-deploy-robot");
robot.start(app, "/", "github");