mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 12:28:01 +08:00
fix: zli images show if signed instead of signature (#886)
Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com>
This commit is contained in:
committed by
GitHub
parent
76714d53f8
commit
7f9052972d
@@ -544,10 +544,17 @@ func (r *queryResolver) getImageList(store storage.ImageStore, imageName string)
|
||||
}
|
||||
|
||||
isSigned := layoutUtils.CheckManifestSignature(repo, digest)
|
||||
|
||||
tagPrefix := strings.HasPrefix(tag.Name, "sha256-")
|
||||
tagSuffix := strings.HasSuffix(tag.Name, ".sig")
|
||||
|
||||
imageInfo := BuildImageInfo(repo, tag.Name, digest, manifest,
|
||||
imageConfig, isSigned)
|
||||
|
||||
results = append(results, imageInfo)
|
||||
// check if it's an image or a signature
|
||||
if !tagPrefix && !tagSuffix {
|
||||
results = append(results, imageInfo)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user