Skip to content

Commit

Permalink
Fix: error of private registry in lifecycle phase
Browse files Browse the repository at this point in the history
Signed-off-by: duanhongyi <duanhongyi@doopai.com>
  • Loading branch information
duanhongyi committed Apr 27, 2022
1 parent 47a05e6 commit c95e384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/build/lifecycle_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (l *LifecycleExecution) Create(ctx context.Context, publish bool, dockerHos
}

if publish {
authConfig, err := auth.BuildEnvVar(authn.DefaultKeychain, repoName)
authConfig, err := auth.BuildEnvVar(authn.DefaultKeychain, repoName, runImage, l.opts.CacheImage, l.opts.PreviousImage)
if err != nil {
return err
}
Expand Down Expand Up @@ -429,7 +429,7 @@ func (l *LifecycleExecution) newAnalyze(repoName, networkMode string, publish bo
}

if publish {
authConfig, err := auth.BuildEnvVar(authn.DefaultKeychain, repoName)
authConfig, err := auth.BuildEnvVar(authn.DefaultKeychain, repoName, runImage, l.opts.CacheImage, l.opts.PreviousImage)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -566,7 +566,7 @@ func (l *LifecycleExecution) newExport(repoName, runImage string, publish bool,
}

if publish {
authConfig, err := auth.BuildEnvVar(authn.DefaultKeychain, repoName, runImage)
authConfig, err := auth.BuildEnvVar(authn.DefaultKeychain, repoName, runImage, l.opts.CacheImage, l.opts.PreviousImage)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c95e384

Please sign in to comment.