tableflip/tars

Name: tars

Owner: TABLEFLIP

Description: :shipit: TABLEFLIP Automated Release System

Created: 2016-03-15 09:51:04.0

Updated: 2017-11-09 19:57:51.0

Pushed: 2017-11-08 16:27:49.0

Homepage:

Size: 20

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TARS

TABLEFLIP Automated Release System.

Getting started
  1. Install Node.js

  2. Install dependencies npm install

  3. (Optional) Add builder config file .tarsrc (defaults below):

    
    bhook: {
    path: '/webhook',
    secret: '(?°?°???TABLEFLIP',
    port: 7777
    
    lease: {
    dir: './release',
    branch: 'gh-pages', // Restrict releases to tags on the specified branch
    
    
    
  4. Start the webhook npm start

Configure a site to be released
  1. Navigate to Settings for the repo
  2. In Collaborators, add tableflip-tars as a collaborator with read access
  3. in Webhooks & services add a new webhook with the following info:
    • Payload URL: http://tars.tableflip.io:7777/webhook
    • Content type: application/json
    • Secret: Retrieve from secrets.yaml for tars-infrastructure project
    • Event: Create (Branch or tag created)
Programmatic usage

release.js

t release = require('./release')

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

ase(repo, tag, opts, (err, info) => {
nsole.log(`Released in ${info.dir}`)


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.