Skip to content

Commit

Permalink
fix: Add debug log when retaging images
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvey committed Jan 5, 2022
1 parent 39dddd6 commit c05cbf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func doBuild(opts buildOpts) (*dag.DAG, error) {

DAG.Rebuild(currentVersion, opts.forceRebuild, opts.runTests, opts.localOnly)
if opts.retagLatest {
logrus.Info("--retag-latest is set to true, latest tag will now use current image versions")
if err := DAG.RetagLatest(currentVersion); err != nil {
return nil, err
}
Expand Down
1 change: 1 addition & 0 deletions dag/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (img *Image) runTests(ref, path string) error {
// retagLatest iterates over the graph to retag each image with the latest tag.
func (img *Image) retagLatest(tag string) error {
if !img.RetagLatestDone {
logrus.Debugf("Retag latest tag for image %s with version %s", img.Name, tag)
if err := img.Registry.Retag(img.dockerRef(tag), img.dockerRef(latest)); err != nil {
return err
}
Expand Down

0 comments on commit c05cbf1

Please sign in to comment.