tableflip/tabs

Name: tabs

Owner: TABLEFLIP

Description: :hammer: TABLEFLIP Automated Build System

Created: 2016-02-29 15:47:53.0

Updated: 2017-11-26 21:05:24.0

Pushed: 2017-11-10 11:25:55.0

Homepage:

Size: 143

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TABS

TABLEFLIP Automated Build System.

Getting started
  1. Install Node.js

  2. Install dependencies npm install

  3. (Optional) Add TABS config file .tabsrc (defaults below):

    
    bhook: {
    path: '/webhook',
    secret: '(?°?°???TABLEFLIP',
    port: 7777
    
    ild: {
    dir: './build'
    
    
    
  4. Start the webhook npm start

Configure a site to be built
  1. Navigate to Settings for the repo
  2. In Collaborators, add tableflip-tabs as a collaborator with write access
  3. in Webhooks & services add a new webhook with the following info:
    • Payload URL: http://tabs.tableflip.io:7777/webhook
    • Content type: application/json
    • Secret: Retrieve from secrets.yaml for tabs-infrastructure project
Programmatic usage

build.js

t build = require('./build')

t repo = 'git@github.com:tableflip/tableflip-www.git'
t commit = 'a0342ede2ea56c799d8ad40937267ba2875e9d88'
t opts = {stdout: process.stdout, stderr: process.stderr}

d(repo, commit, opts, (err, info) => {
nsole.log(`Built in ${info.dir}`)

deploy.js

t deploy = require('./deploy')

t dir = '/path/to/built/tableflip-www'
t repo = 'https://github.com/tableflip/tableflip-www.git'
t opts = {stdout: process.stdout, stderr: process.stderr}

eploy built `dir` to `repo` on `branch`
oy(dir, repo, 'gh-pages', opts, (err) => {
nsole.log(`Deployed`)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.