Skip to content

Commit

Permalink
fixing index oob when no versions are detected (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei-Predoiu authored Aug 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8c4d0e9 commit b7e6543
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions circleci/docker.go
Original file line number Diff line number Diff line change
@@ -115,6 +115,11 @@ func findNewestDockerVersion(currentVersion string, parameters *map[string]*yaml

sort.Sort(version.Collection(versions))

if len(versions) == 0 {
cache[currentVersion] = currentTag
return imageName, currentTag, currentTag
}

newest := versions[len(versions)-1]

if currentv.GreaterThan(newest) {

0 comments on commit b7e6543

Please sign in to comment.