Skip to content

Commit

Permalink
Sort backup items by repo
Browse files Browse the repository at this point in the history
Different repos may have the same tags. Sort by both tag and repo.
  • Loading branch information
emilyzheng committed May 29, 2024
1 parent 40d9059 commit 1ece846
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pubtools/_quay/push_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ def run(self) -> None:
backup_tags.items(),
key=lambda x: (
x[0].tag,
x[0].repo,
x[0].v2list_digest or "",
x[0].v2s2_digest or "",
x[0].v2s1_digest or "",
Expand All @@ -813,6 +814,7 @@ def run(self) -> None:
backup_tags2_shared.items(),
key=lambda x: (
x[0].tag,
x[0].repo,
x[0].v2list_digest or "",
x[0].v2s2_digest or "",
x[0].v2s1_digest or "",
Expand Down

0 comments on commit 1ece846

Please sign in to comment.