worker: support for configuring the containers auth file

Add a new configuration section for containers and an option
to configure the authfile in it.
This commit is contained in:
Christian Kellner 2022-07-21 17:29:49 +02:00
parent ec4598f81f
commit 78a96a5414
4 changed files with 35 additions and 10 deletions

View file

@ -29,6 +29,7 @@ func (impl *ContainerResolveJobImpl) Run(job worker.Job) error {
logWithId.Infof("Resolving containers (%d)", len(args.Specs))
resolver := container.NewResolver(args.Arch)
resolver.AuthFilePath = impl.AuthFilePath
for _, s := range args.Specs {
resolver.Add(s.Source, s.Name, s.TLSVerify)