Skip to content

Commit

Permalink
fix: Correctly set RetagDone flag
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvey committed Jan 12, 2022
1 parent 34926ce commit a21dc75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dag/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ func (img *Image) doRetag(newTag, oldTag string) error {
logrus.Debugf("Current tag for \"%s:%s\", already exists, nothing to do", img.Name, newTag)
} else {
if previousTagExists {
return img.Tagger.Tag(img.dockerRef(oldTag), img.dockerRef(newTag))
if err := img.Tagger.Tag(img.dockerRef(oldTag), img.dockerRef(newTag)); err != nil {
return err
}
img.RetagDone = true
return nil
} else {
logrus.Warnf("Previous tag \"%s:%s\" missing, image will be rebuilt", img.Name, oldTag)
img.tagForRebuild()
Expand Down

0 comments on commit a21dc75

Please sign in to comment.