Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Image specifies the Docker image with // which we run your builds. Image string // Clone defines the depth of Git clones // for all pipelines. Clone struct { Depth int } // Pipeline defines the pipeline configuration // which includes a list of all steps for default, // tag, and branch-specific execution. Pipelines struct { Default Stage Tags map[string]Stage Branches map[string]Stage } Definitions struct { Services map[string]*Step Caches map[string]string } }
Config defines the pipeline configuration.
type Stage ¶
Stage contains a list of steps executed for a specific branch or tag.
func (*Stage) UnmarshalYAML ¶
UnmarshalYAML implements custom parsing for the stage section of the yaml to cleanup the structure a bit.
type Step ¶
type Step struct { // Name of the pipeline step. Name string // Image specifies the Docker image with // which we run your builds. Image string // Script contains the list of bash commands // that are executed in sequence. Script []string // Variables provides environment variables // passed to the container at runtime. Variables map[string]string // Artifacts defines files that are to be // snapshotted and shared with the subsequent // step. This is not used, because Drone uses // a shared volume to share artifacts. Artifacts []string }
Step defines a build execution unit.
Click to show internal directories.
Click to hide internal directories.