Deis.createBuild()

Creates a new build of an application.

Usage

Hover over inputs/exits for more info.

var Deis = require('machinepack-deis');


// Creates a new build of an application.

Deis.createBuild({

token: '',

controller: 'http://deis.mydeisapp.com',

app: 'myawesomeapp',

image: 'deis/example-go',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The token provided were invalid

notAuthenticated: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

token required

An access token for use with a Deis install.

''
controller required

The controller location of your Deis install.

'http://deis.mydeisapp.com'
app required

The uniquely identifiable name for the application.

'myawesomeapp'
image required

A fully-qualified docker image, either from Docker Hub or from an in-house registry.

'deis/example-go'

Exits

error

An unexpected error occurred.

notAuthenticated

The token provided were invalid

success

OK.

{ app: 'mydeisapp',
  image: 'deis/example-go',
  created: '2015-03-06T01:54:33UTC',
  updated: '2015-03-06T01:54:33UTC',
  uuid: 'b10741ba-6284-4231-8af8-528d5122420c' }