mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
driver: allow setting buildkit config file
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Co-Authored-By: Tibor Vass <tiborvass@users.noreply.github.com>
This commit is contained in:
@ -26,6 +26,7 @@ type InitConfig struct {
|
||||
Name string
|
||||
DockerAPI dockerclient.APIClient
|
||||
BuildkitFlags []string
|
||||
ConfigFile string
|
||||
Meta map[string]interface{}
|
||||
}
|
||||
|
||||
@ -71,11 +72,12 @@ func GetFactory(name string, instanceRequired bool) Factory {
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetDriver(ctx context.Context, name string, f Factory, api dockerclient.APIClient, flags []string) (Driver, error) {
|
||||
func GetDriver(ctx context.Context, name string, f Factory, api dockerclient.APIClient, flags []string, config string) (Driver, error) {
|
||||
ic := InitConfig{
|
||||
DockerAPI: api,
|
||||
Name: name,
|
||||
BuildkitFlags: flags,
|
||||
ConfigFile: config,
|
||||
}
|
||||
if f == nil {
|
||||
var err error
|
||||
|
Reference in New Issue
Block a user