是否可以为 buildkite 指定 .yml 文件的名称以用于其管道配置?

Is it possible to specify the name of the .yml file for buildkite to use for its pipeline config?

默认情况下,Buildkite 在您的存储库中搜索 .buildkite/pipeline.yml,但是我想知道是否可以为配置文件指定一个替代名称。

例如,您的存储库中是否可以包含以下文件夹和 yml 文件:

.buildkite/pipeline.yml
.buildkite/pipeline2.yml

然后让一个构建管道搜索默认的 ./buildkite/pipeline.yml,让另一个构建管道搜索特定的 ./buildkite/pipeline2.yml?

有一些默认路径,但您也可以指定管道上传命令的路径,这是一种常见的模式:

buildkite-agent pipeline upload .buildkite/pipeline-deploy.yml

有关详细信息,请参阅文档:

https://buildkite.com/docs/agent/v3/cli-pipeline#uploading-pipelines