Skip to content

Commit

Permalink
Add truncated digest to docker:platforms artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Brown committed Aug 30, 2023
1 parent a7ffb7c commit 84fcf3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildrunner/steprunner/tasks/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ def run(self, context): # pylint: disable=too-many-branches
# add image as artifact
if not self._commit_only:
images = self.step_runner.multi_platform.get_built_images(self.get_unique_build_name())
image_ids = ",".join([image.trunc_digest() for image in images])
platforms = [image.platform for image in images]
image_ids = ','.join([image.trunc_digest() for image in images])
platforms = [f'{image.platform}:{image.trunc_digest()}' for image in images]
self.step_runner.build_runner.add_artifact(
os.path.join(self.step_runner.name, image_ids.replace(",", "/")),
os.path.join(self.step_runner.name, image_ids.replace(',', '/')),
{
'type': 'docker-image',
'docker:image': image_ids,
Expand Down

0 comments on commit 84fcf3a

Please sign in to comment.