Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Azure ¶
type Azure struct { StorageAccount string `yaml:"storage_account,omitempty"` StorageAccessKey string `yaml:"storage_access_key,omitempty"` StorageContainer string `yaml:"storage_container,omitempty"` // Uploads file indicated by Source to file // indicated by Target. Only individual file names // are supported by Source and Target Source string `yaml:"source,omitempty"` Target string `yaml:"target"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*Azure) GetCondition ¶
type Docker ¶
type Docker struct { // The path to the dockerfile to create the image from. If the path is empty or no // path is specified then the docker file will be built from the base directory. Dockerfile string `yaml:"docker_file"` // Connection information for the docker server that will build the image // Same format than DOCKER_HOST envvar, i.e.: tcp://172.16.1.1:2375 DockerHost string `yaml:"docker_host"` // The Docker client version to download. Will default to latest if not set DockerVersion string `yaml:"docker_version"` // Optional Arguments to allow finer-grained control of registry // endpoints RegistryLoginUrl string `yaml:"registry_login_url"` ImageName string `yaml:"image_name"` RegistryLogin bool `yaml:"registry_login"` // Authentication credentials for index.docker.io Username string `yaml:"username"` Password string `yaml:"password"` Email string `yaml:"email"` // Keep the build on the Docker host after pushing? KeepBuild bool `yaml:"keep_build"` Tag string `yaml:"tag"` Tags []string `yaml:"tags"` ForceTags bool `yaml:"force_tags"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*Docker) GetCondition ¶
func (*Docker) Write ¶
Write adds commands to the buildfile to do the following: 1. Install the docker client in the Drone container if required. 2. Build a docker image based on the dockerfile defined in the config. 3. Push that docker image to index.docker.io. 4. Delete the docker image on the server it was build on so we conserve disk space.
type Dropbox ¶
type Dropbox struct { AccessToken string `yaml:"access_token,omitempty"` Source string `yaml:"source,omitempty"` Target string `yaml:"target,omitempty"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*Dropbox) GetCondition ¶
type Github ¶
type Github struct { // Script is an optional list of commands to run to prepare for a release. Script []string `yaml:"script"` // Artifacts is a list of files or directories to release. Artifacts []string `yaml:"artifacts"` // Tag is the name of the tag to create for this release. Tag string `yaml:"tag"` // Name is the name of the release. Defaults to tag. Name string `yaml:"name"` // Description describes the release. Defaults to empty string. Description string `yaml:"description"` // Draft is an identifier on a Github release. Draft bool `yaml:"draft"` // Prerelease is an identifier on a Github release. Prerelease bool `yaml:"prerelease"` // Token is the Github token to use when publishing the release. Token string `yaml:"token"` // User is the Github user for the repository you'd like to publish to. User string `yaml:"user"` // Repo is the name of the Github repostiory you like to publish to. Repo string `yaml:"repo"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*Github) GetCondition ¶
type Publish ¶
type Publish struct { Azure *Azure `yaml:"azure,omitempty"` S3 *S3 `yaml:"s3,omitempty"` Swift *Swift `yaml:"swift,omitempty"` PyPI *PyPI `yaml:"pypi,omitempty"` NPM *npm.NPM `yaml:"npm,omitempty"` Docker *Docker `yaml:"docker,omitempty"` Github *Github `yaml:"github,omitempty"` Dropbox *Dropbox `yaml:"dropbox,omitempty"` Bintray *bintray.Bintray `yaml:"bintray,omitempty"` }
Publish stores the configuration details for publishing build artifacts when a Build has succeeded
type PyPI ¶
type PyPI struct { Username string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` Formats []string `yaml:"formats,omitempty"` Repository string `yaml:"repository,omitempty"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*PyPI) BuildFormatStr ¶
func (*PyPI) GetCondition ¶
type S3 ¶
type S3 struct { Key string `yaml:"access_key,omitempty"` Secret string `yaml:"secret_key,omitempty"` Bucket string `yaml:"bucket,omitempty"` // us-east-1 // us-west-1 // us-west-2 // eu-west-1 // ap-southeast-1 // ap-southeast-2 // ap-northeast-1 // sa-east-1 Region string `yaml:"region,omitempty"` // Indicates the files ACL, which should be one // of the following: // private // public-read // public-read-write // authenticated-read // bucket-owner-read // bucket-owner-full-control Access string `yaml:"acl,omitempty"` // Copies the files from the specified directory. // Regexp matching will apply to match multiple // files // // Examples: // /path/to/file // /path/to/*.txt // /path/to/*/*.txt // /path/to/** Source string `yaml:"source,omitempty"` Target string `yaml:"target,omitempty"` // Recursive uploads Recursive bool `yaml:"recursive"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*S3) GetCondition ¶
type Swift ¶
type Swift struct { // Username for authentication Username string `yaml:"username,omitempty"` // Password for authentication // With Rackspace this is usually an API Key Password string `yaml:"password,omitempty"` // Container to upload files to Container string `yaml:"container,omitempty"` // Base API version URL to authenticate against // Rackspace: https://identity.api.rackspacecloud.com/v2.0 AuthURL string `yaml:"auth_url,omitempty"` // Region to communicate with, in a generic OpenStack install // this may be RegionOne Region string `yaml:"region,omitempty"` // Source file or directory to upload, if source is a directory, // upload the contents of the directory Source string `yaml:"source,omitempty"` // Destination to write the file(s) to. Should contain the full // object name if source is a file Target string `yaml:"target,omitempty"` Condition *condition.Condition `yaml:"when,omitempty"` }
func (*Swift) GetCondition ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.