in google_cloud_automlops/deployments/github_actions.py [0:0]
def build(self):
"""Constructs Github actions yaml at AutoMLOps/.github/workflows/github_actions.yaml.
"""
# Write github actions config
write_file(
filepath=GENERATED_GITHUB_ACTIONS_FILE,
text=render_jinja(
template_path=import_files(GITHUB_ACTIONS_TEMPLATES_PATH) / 'github_actions.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,
project_number=self.project_number,
pubsub_topic_name=self.pubsub_topic_name,
source_repo_branch=self.source_repo_branch,
use_ci=self.use_ci,
workload_identity_pool=self.workload_identity_pool,
workload_identity_provider=self.workload_identity_provider,
workload_identity_service_account=self.workload_identity_service_account
),
mode='w')