mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-22 01:50:40 +00:00
support legacy pipelines as kubernetes
This commit is contained in:
parent
9036725284
commit
d9540bcf66
@ -60,6 +60,9 @@ func Convert(d []byte, remote string) ([]byte, error) {
|
||||
pipeline := droneyaml.Pipeline{}
|
||||
pipeline.Name = "default"
|
||||
pipeline.Kind = "pipeline"
|
||||
if os.Getenv("DRONE_CONVERT_YAML_LEGACY_TO_KUBERNETES") == "true" {
|
||||
pipeline.Type = "kubernetes"
|
||||
}
|
||||
|
||||
pipeline.Workspace.Base = from.Workspace.Base
|
||||
pipeline.Workspace.Path = from.Workspace.Path
|
||||
|
Loading…
Reference in New Issue
Block a user