def run(self):
        """
        Run the plugin.
        """

        worker_builds = self.workflow.build_result.annotations['worker-builds']
        has_v1_image_id = None
        repo_tags = {}

        for platform in worker_builds:
            build_info = get_worker_build_info(self.workflow, platform)
            annotations = build_info.build.get_annotations()
            v1_image_id = annotations.get('v1-image-id')
            if v1_image_id:
                if has_v1_image_id:
                    msg = "two platforms with v1-image-ids: {0} and {1}".format(platform,
                                                                                has_v1_image_id)
                    raise RuntimeError(msg)
                has_v1_image_id = platform
                self.log.info("tagging v1-image-id %s for platform %s", v1_image_id, platform)
                ret_val = self.set_v1_tags(v1_image_id)
                if ret_val:
                    repo_tags = ret_val
        return repo_tags