deploy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bash

type Bash struct {
	Script  []string `yaml:"script,omitempty"`
	Command string   `yaml:"command,omitempty"`

	Condition *condition.Condition `yaml:"when,omitempty"`
}

func (*Bash) GetCondition

func (g *Bash) GetCondition() *condition.Condition

func (*Bash) Write

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

type CloudFoundry

type CloudFoundry struct {
	Target   string `yaml:"target,omitempty"`
	Username string `yaml:"username,omitempty"`
	Password string `yaml:"password,omitempty"`
	Org      string `yaml:"org,omitempty"`
	Space    string `yaml:"space,omitempty"`

	App string `yaml:"app,omitempty"`

	Condition *condition.Condition `yaml:"when,omitempty"`
}

func (*CloudFoundry) GetCondition

func (cf *CloudFoundry) GetCondition() *condition.Condition

func (*CloudFoundry) Write

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

type Deploy

type Deploy struct {
	CloudFoundry *CloudFoundry        `yaml:"cloudfoundry,omitempty"`
	Git          *git.Git             `yaml:"git,omitempty"`
	Heroku       *heroku.Heroku       `yaml:"heroku,omitempty"`
	Deis         *deis.Deis           `yaml:"deis,omitempty"`
	Modulus      *modulus.Modulus     `yaml:"modulus,omitempty"`
	Nodejitsu    *nodejitsu.Nodejitsu `yaml:"nodejitsu,omitempty"`
	SSH          *SSH                 `yaml:"ssh,omitempty"`
	Tsuru        *tsuru.Tsuru         `yaml:"tsuru,omitempty"`
	Bash         *Bash                `yaml:"bash,omitempty"`
	Marathon     *marathon.Marathon   `yaml:"marathon,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, r *repo.Repo)

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"`

	Condition *condition.Condition `yaml:"when,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) GetCondition

func (s *SSH) GetCondition() *condition.Condition

func (*SSH) Write

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

Write down the buildfile

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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