Fix bug in Docker pin script causing the latest tag to be pinned

This commit is contained in:
Joe Rickerby
2020-04-06 11:47:23 +01:00
parent 8986b2d468
commit e78a731e2d
+3 -1
View File
@@ -84,7 +84,9 @@ for image in images:
digest = latest_tag['images'][0]['digest']
pinned_tag = next(
tag for tag in tags if tag['images'][0]['digest'] == digest
tag
for tag in tags
if tag != latest_tag and tag['images'][0]['digest'] == digest
)
tag_name = pinned_tag['name']