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:
parent
ec4598f81f
commit
78a96a5414
4 changed files with 35 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue