Support .yaml as file-ending for workflow config too (#1388)

This implements #1073, adds .yaml to the accepted endings for woodpecker configs.

This currently adds some more lines to the duplication (tried to compensate by fixing the other duplication in the configFetcher) as the CLI and Server are still separate.
This commit is contained in:
Michael
2022-11-03 19:12:40 +01:00
committed by GitHub
parent ee9269d658
commit 2477d2e57f
9 changed files with 152 additions and 69 deletions

View File

@@ -22,6 +22,15 @@ var PrivilegedPlugins = []string{
"woodpeckerci/plugin-docker-buildx",
}
// DefaultConfigOrder represent the priority in witch woodpecker serarch for a pipeline config by default
// folders are indicated by supplying a trailing /
var DefaultConfigOrder = [...]string{
".woodpecker/",
".woodpecker.yml",
".woodpecker.yaml",
".drone.yml",
}
const (
DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:v1.6.0"
)