Skip to content

Commit

Permalink
pass lint test
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Li <ricli@linkedin.com>
  • Loading branch information
Richard Li committed Jun 24, 2023
1 parent a27816c commit 6bb8a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/app/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func buildkit(clicontext *cli.Context) error {
config := buildkitutil.BuildkitConfig{
Mirror: clicontext.String("dockerhub-mirror"),
}

configFile := clicontext.String("registry-config")
if len(configFile) != 0 {
configJson, err := os.ReadFile(configFile)
Expand All @@ -327,9 +327,9 @@ func buildkit(clicontext *cli.Context) error {
config.CertPath = append(config.CertPath, registry.Cert)
config.KeyPath = append(config.KeyPath, registry.Key)
config.UseHTTP = append(config.UseHTTP, registry.UseHttp)
}
}
}

if c.Builder == types.BuilderTypeMoby {
bkClient, err = buildkitd.NewMobyClient(clicontext.Context,
c.Builder, c.BuilderAddress, &config)
Expand Down

0 comments on commit 6bb8a46

Please sign in to comment.