Skip to content

Implement cloud build functionality in BuildRuntime #434

Description

@singhshresth26

What would you like to be added:
Implement the simulated cloud build strategy (_build_cloud method) in build_runtime.py. The feature should:

  • Support cloud build mode when --build-mode cloud is used or defined in agent_metadata.yaml.
  • Package/archive the agent workspace and simulate remote build progress/logs for cloud build providers (such as Huawei Cloud CodeArts).
  • Resolve the cloud registry image URL. If no custom registry URL is provided in the metadata, it should default to a Huawei Cloud SWR template (e.g., swr.{region}.myhuaweicloud.com/agentcube/{agent_name}:{tag}).
  • Correctly update and persist build_mode: cloud and the resolved image URL/tag details in agent_metadata.yaml.

Why is this needed:
Currently, selecting cloud build mode falls back to local Docker build logic and hardcodes build_mode: local in the metadata. Implementing the cloud build mode enables proper end-to-end testing of cloud-based publishing workflows and remote image resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions