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.
What would you like to be added:
Implement the simulated cloud build strategy (
_build_cloudmethod) in build_runtime.py. The feature should:--build-mode cloudis used or defined inagent_metadata.yaml.swr.{region}.myhuaweicloud.com/agentcube/{agent_name}:{tag}).build_mode: cloudand the resolved image URL/tag details inagent_metadata.yaml.Why is this needed:
Currently, selecting
cloudbuild mode falls back to local Docker build logic and hardcodesbuild_mode: localin the metadata. Implementing the cloud build mode enables proper end-to-end testing of cloud-based publishing workflows and remote image resolution.