Skip to content

Commit 11c1122

Browse files
committed
fix: update image tag comparison to use exact match
1 parent a58c627 commit 11c1122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AllImagesQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private async IAsyncEnumerable<Image> GetBaseImagesAsync(Config.Config.ImageConf
119119
var imagesListResponse = imagesListResponses
120120
.SingleOrDefault(e =>
121121
e.RepoTags != null &&
122-
e.RepoTags.Any(repoTag => repoTag.Contains(ImageNameHelper.BuildImageName(imageConfig.ImageName, tag))));
122+
e.RepoTags.Any(repoTag => repoTag == ImageNameHelper.BuildImageName(imageConfig.ImageName, tag)));
123123
List<Container> containers;
124124
if (imagesListResponse != null)
125125
{

0 commit comments

Comments
 (0)