Fix container duplication

This commit is contained in:
2020-11-08 01:32:45 +01:00
parent f44caa8ad8
commit 0bf7e54ad7
6 changed files with 69 additions and 28 deletions

View File

@ -42,7 +42,7 @@ func (SemVerMajor) ShouldUpdate(currentTag string, availableTags []Tag) *Tag {
semverTags := make([]Tag, 0)
for _, tag := range availableTags {
if tag.SemVer != nil {
if tag.SemVer != nil && currentSemVer.version.LessThan(tag.SemVer.version) {
semverTags = append(semverTags, tag);
}
}