Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bash ¶ added in v0.2.1
type CloudControl ¶
type CloudControl struct { }
func (*CloudControl) Write ¶
func (c *CloudControl) 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"` }
func (*CloudFoundry) Write ¶
func (cf *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"` Tsuru *Tsuru `yaml:"tsuru,omitempty"` Bash *Bash `yaml:"bash,omitempty"` }
Deploy stores the configuration details for deploying build artifacts when a Build has succeeded
type EngineYard ¶
type EngineYard struct { }
func (*EngineYard) Write ¶
func (e *EngineYard) Write(f *buildfile.Buildfile)
type Git ¶
type Heroku ¶
type Modulus ¶
type Nodejitsu ¶
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.
Click to show internal directories.
Click to hide internal directories.