latestOpenAPI 3.0.02026-08-10221235717.8 KB

e21ad140ec3c

public
Image

Add a new Image Build

DEPRECATED: This endpoint exists for historical compatibility and should not be used. Please use the Artefact API instead.

This endpoint is used by Continuous Integration (CI) pipelines to notify Humanitec that a new Image Build is available.

If there is no Image with ID imageId, it will be automatically created.

post/orgs/{orgId}/images/{imageId}/builds

Path parameters

orgIdstring required

The organization ID.

imageIdstring required

The Image ID.

Request body

branchstring

The branch name of the branch the build was built on

commitstring

The commit ID that this build was built from.

imagestring

The fully qualified Image URL including registry, repository and tag.

tagsstring[]

The tag that the build was built from.

Example request

{
  "branch": "master",
  "commit": "884bccaa807ea27cc1997a7492a3b6279fd7bd55",
  "image": "registry.humanitec.io/my-org/my-service:1.2.7"
}

Response

Build successfully added.