Component ยท Data side
AM build ClusterWorkflows
BOTH Pipeline Workflow plane
What it is
The build workflows are the recipes OpenChoreo uses to turn an agent's source code into a running image. Agent Manager provides three: amp-docker, amp-google-cloud-buildpacks and amp-ballerina-buildpack. They run on the workflow plane.
Why it exists
Developers should not write build pipelines for each agent. A standard set covers Dockerfile, Python or Go buildpack and Ballerina projects.
How it works
- Steps are checkout source, build the image, publish it to the registry, and generate the Workload.
- The generate-workload step creates the Workload, a release and the first environment's binding through the OpenChoreo API.
- Agent Manager starts a build by creating a WorkflowRun and then polls its status.
- On Choreo Cloud, the workflows are installed per organization by the provisioner as namespaced workflows, with a shared cluster workflow as fallback.
Identity and access
The generate-workload step fetches its own token with the openchoreo-workload-publisher-client, so builds can write releases but do nothing else.
Key facts
- Workflows
- amp-docker, amp-google-cloud-buildpacks, amp-ballerina-buildpack
- Namespace
- openchoreo-workflow-plane
- Side
- Workflow plane
Talks to (1)
- signs in with Workload publisher identity generate-workload step tokenclient_credentials
Used by (1)
- called by agent-manager-service (AMS) TriggerBuildOC REST WorkflowRun