Skip to content

darrenmce/jsci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSCI - Simple ~100 line CI process written in node

Caveats

  • only works with public git repositories (or with auth in the url.. )
  • requires a docker image for build steps to be run within
  • requires a Dockerfile in the repository for publishing

This is a purely educational implementation.

Usage:

create a json config file (myconfig.json in example) to provide your registry authentication (docker hub or any registry) and your workspace (where the builds get cloned to and run out of)

{
  "workspace": "/path/to/workspace/root",
  "auth": {
    "hub": {
      "username": "homersimpson",
      "password": "d0hnuts"
    }
  }
}

based on the example.json in the repository, create a build json (mybuild.json in example).

install jsci and run your Job!

npm install -g jsci
jsci --config myconfig.json -f mybuild.json