mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-24 19:10:40 +00:00
add legacy clone option
This commit is contained in:
parent
be6b37e0b4
commit
9036725284
@ -83,6 +83,13 @@ func Convert(d []byte, remote string) ([]byte, error) {
|
||||
toContainer(container),
|
||||
)
|
||||
}
|
||||
} else if os.Getenv("DRONE_CONVERT_YAML_LEGACY_CLONE") == "true" {
|
||||
pipeline.Clone.Disable = true
|
||||
pipeline.Steps = append(pipeline.Steps, &droneyaml.Container{
|
||||
Name: "clone",
|
||||
Image: "plugins/git",
|
||||
Pull: "if-not-exists",
|
||||
})
|
||||
}
|
||||
|
||||
for _, container := range from.Services.Containers {
|
||||
|
Loading…
Reference in New Issue
Block a user