def build()

in google_cloud_automlops/deployments/cloudbuild.py [0:0]


    def build(self):
        """Constructs CloudBuild yaml at AutoMLOps/cloudbuild.yaml.
        """
        # Write cloud build config
        component_base_relative_path = COMPONENT_BASE_RELATIVE_PATH if self.use_ci else f'{BASE_DIR}{COMPONENT_BASE_RELATIVE_PATH}'
        write_file(
            filepath=GENERATED_CLOUDBUILD_FILE,
            text=render_jinja(
                template_path=import_files(CLOUDBUILD_TEMPLATES_PATH) / 'cloudbuild.yaml.j2',
                artifact_repo_location=self.artifact_repo_location,
                artifact_repo_name=self.artifact_repo_name,
                component_base_relative_path=component_base_relative_path,
                generated_license=GENERATED_LICENSE,
                generated_parameter_values_path=GENERATED_PARAMETER_VALUES_PATH,
                naming_prefix=self.naming_prefix,
                project_id=self.project_id,
                pubsub_topic_name=self.pubsub_topic_name,
                use_ci=self.use_ci),
            mode='w')