manifest: add only necessary repositories to each pipeline

Each pipeline constructor receives the full list of repositories and
filters the list based on its own internal name.
This commit is contained in:
Achilleas Koutsou 2023-02-17 18:00:30 +01:00 committed by Tomáš Hozza
parent a66003e513
commit c7e0b69704
5 changed files with 15 additions and 10 deletions

View file

@ -41,10 +41,11 @@ func NewOSTreeCommitServer(m *Manifest,
commitPipeline *OSTreeCommit,
nginxConfigPath,
listenPort string) *OSTreeCommitServer {
name := "container-tree"
p := &OSTreeCommitServer{
Base: NewBase(m, "container-tree", buildPipeline),
Base: NewBase(m, name, buildPipeline),
platform: platform,
repos: repos,
repos: filterRepos(repos, name),
commitPipeline: commitPipeline,
nginxConfigPath: nginxConfigPath,
listenPort: listenPort,