mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-07-21 13:08:23 +00:00
Adjust pipeline-config to match [Terminology](https://woodpecker-ci.org/docs/next/usage/terminology)
37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package types
|
|
|
|
import (
|
|
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/constraint"
|
|
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types/base"
|
|
)
|
|
|
|
type (
|
|
// Workflow defines a workflow configuration.
|
|
Workflow struct {
|
|
When constraint.When `yaml:"when,omitempty"`
|
|
Platform string `yaml:"platform,omitempty"`
|
|
Workspace Workspace `yaml:"workspace,omitempty"`
|
|
Clone ContainerList `yaml:"clone,omitempty"`
|
|
Steps ContainerList `yaml:"steps,omitempty"`
|
|
Services ContainerList `yaml:"services,omitempty"`
|
|
Labels base.SliceOrMap `yaml:"labels,omitempty"`
|
|
DependsOn []string `yaml:"depends_on,omitempty"`
|
|
RunsOn []string `yaml:"runs_on,omitempty"`
|
|
SkipClone bool `yaml:"skip_clone"`
|
|
// Undocumented
|
|
Cache base.StringOrSlice `yaml:"cache,omitempty"`
|
|
Networks WorkflowNetworks `yaml:"networks,omitempty"`
|
|
Volumes WorkflowVolumes `yaml:"volumes,omitempty"`
|
|
// Deprecated
|
|
BranchesDontUseIt *constraint.List `yaml:"branches,omitempty"`
|
|
// Deprecated
|
|
PipelineDontUseIt ContainerList `yaml:"pipeline,omitempty"`
|
|
}
|
|
|
|
// Workspace defines a pipeline workspace.
|
|
Workspace struct {
|
|
Base string
|
|
Path string
|
|
}
|
|
)
|