Skip to content

Commit

Permalink
Copy to correct tags when tag_suffix is set
Browse files Browse the repository at this point in the history
  • Loading branch information
midnightercz committed Aug 9, 2023
1 parent 2f37eee commit 05f53ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pubtools/_quay/operator_pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,11 @@ def push_index_images(self, iib_results, tag_suffix=None):
build_details.index_image, dest_images, True, index_image_ts
)
if tag_suffix:
dest_image = "{0}:{1}-{2}".format(index_image_repo, tag, tag_suffix)
_dest_images = []
for _dest_tag in results["destination_tags"]:
_dest_images.append(
"{0}:{1}-{2}".format(index_image_repo, _dest_tag, tag_suffix)
)
ContainerImagePusher.run_tag_images(
permanent_index_image, [dest_image], True, index_image_ts
permanent_index_image, _dest_images, True, index_image_ts
)

0 comments on commit 05f53ea

Please sign in to comment.