ON-PREM CHOREO CLOUD BOTH

What it is

main-<sha> is the normal image tag for a container image built from a merge to main. The sha is the full 40 character commit id of the source repository. For example, the Agent Manager service image is system/agent-manager-service:main-<sha>.

It is a serial number stamped on each product. The number is the exact commit it was made from.

Why it exists

A tag tied to a commit id says exactly which source produced an image, and the same tag can never mean two different builds.

How it works

  • A merge to main in a source repository such as agent-platform starts build-pipeline.
  • The pipeline builds each component that matches its trigger paths (Kaniko for a Dockerfile, Cloud Native Buildpacks for a buildpack), scans it with Trivy and pushes it to the platform ECR.
  • A GitOps step writes the new tag into the component's workload.yaml in wso2cloud-deployment main, in a commit named Bump workload images.
  • dev-deploy-pipeline then makes a ComponentRelease from it, and dev rolls it out.

Key facts

Format
main-<40 character commit sha>
Example repository
system/agent-manager-service
Written into
components/<component>/workload.yaml
Built by
build-pipeline
Registry
platform ECR
Namespace
ECR

Inside and around

Part of: build-pipeline (build, scan, push, bump)