deploy

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppFog

type AppFog struct {
}

func (*AppFog) Write

func (a *AppFog) Write(f *buildfile.Buildfile)

type CloudControl

type CloudControl struct {
}

func (*CloudControl) Write

func (c *CloudControl) Write(f *buildfile.Buildfile)

type CloudFoundry

type CloudFoundry struct {
}

func (*CloudFoundry) Write

func (c *CloudFoundry) Write(f *buildfile.Buildfile)

type Deploy

type Deploy struct {
	AppFog       *AppFog       `yaml:"appfog,omitempty"`
	CloudControl *CloudControl `yaml:"cloudcontrol,omitempty"`
	CloudFoundry *CloudFoundry `yaml:"cloudfoundry,omitempty"`
	EngineYard   *EngineYard   `yaml:"engineyard,omitempty"`
	Git          *Git          `yaml:"git,omitempty"`
	Heroku       *Heroku       `yaml:"heroku,omitempty"`
	Modulus      *Modulus      `yaml:"modulus,omitempty"`
	Nodejitsu    *Nodejitsu    `yaml:"nodejitsu,omitempty"`
	Openshift    *Openshift    `yaml:"openshift,omitempty"`
	SSH          *SSH          `yaml:"ssh,omitempty"`
}

Deploy stores the configuration details for deploying build artifacts when a Build has succeeded

func (*Deploy) Write

func (d *Deploy) Write(f *buildfile.Buildfile)

type EngineYard

type EngineYard struct {
}

func (*EngineYard) Write

func (e *EngineYard) Write(f *buildfile.Buildfile)

type Git

type Git struct {
	Target string `yaml:"target,omitempty"`
	Force  bool   `yaml:"force,omitempty"`
	Branch string `yaml:"branch,omitempty"`
}

func (*Git) Write

func (g *Git) Write(f *buildfile.Buildfile)

type Heroku

type Heroku struct {
	App    string `yaml:"app,omitempty"`
	Force  bool   `yaml:"force,omitempty"`
	Branch string `yaml:"branch,omitempty"`
}

func (*Heroku) Write

func (h *Heroku) Write(f *buildfile.Buildfile)

type Modulus

type Modulus struct {
	Project string `yaml:"project,omitempty"`
	Token   string `yaml:"token,omitempty"`
}

func (*Modulus) Write

func (m *Modulus) Write(f *buildfile.Buildfile)

type Nodejitsu

type Nodejitsu struct {
}

func (*Nodejitsu) Write

func (n *Nodejitsu) Write(f *buildfile.Buildfile)

type Openshift

type Openshift struct {
}

func (*Openshift) Write

func (o *Openshift) Write(f *buildfile.Buildfile)

type SSH

type SSH struct {

	// Target is the deployment host in this format
	//   user@hostname:/full/path <PORT>
	//
	// PORT may be omitted if its default to port 22.
	Target string `yaml:"target,omitempty"`

	// Artifacts is a list of files/dirs to be deployed
	// to the target host. If artifacts list more than one file
	// it will be compressed into a single tar.gz file.
	// if artifacts contain:
	//   - GITARCHIVE
	//
	// other file listed in artifacts will be ignored, instead, we will
	// create git archive from the current revision and deploy that file
	// alone.
	// If you need to deploy the git archive along with some other files,
	// please use build script to create the git archive, and then list
	// the archive name here with the other files.
	Artifacts []string `yaml:"artifacts,omitempty"`

	// Cmd is a single command executed at target host after the artifacts
	// is deployed.
	Cmd string `yaml:"cmd,omitempty"`
}

SSH struct holds configuration data for deployment via ssh, deployment done by scp-ing file(s) listed in artifacts to the target host, and then run cmd remotely. It is assumed that the target host already add this repo public key in the host's `authorized_hosts` file. And the private key is already copied to `.ssh/id_rsa` inside the build container. No further check will be done.

func (*SSH) Write

func (s *SSH) Write(f *buildfile.Buildfile)

Write down the buildfile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL