mirror of
https://github.com/drone/drone-cli.git
synced 2024-11-23 17:22:09 +01:00
24 lines
623 B
Go
24 lines
623 B
Go
package common
|
|
|
|
// Step represents a step in the build process, including
|
|
// the execution environment and parameters.
|
|
type Step struct {
|
|
Image string
|
|
Pull bool
|
|
Privileged bool
|
|
Environment []string
|
|
Entrypoint []string
|
|
Command []string
|
|
Volumes []string
|
|
WorkingDir string `yaml:"working_dir"`
|
|
NetworkMode string `yaml:"net"`
|
|
|
|
// Condition represents a set of conditions that must
|
|
// be met in order to execute this step.
|
|
Condition *Condition `yaml:"when"`
|
|
|
|
// Config represents the unique configuration details
|
|
// for each plugin.
|
|
Config map[string]interface{} `yaml:"config,inline"`
|
|
}
|