Skip to main content

container

The container result subtype provides a link to the container registry where the built Docker image is stored. CodeNOW uses this information to deploy the container to the target environment.

Payload Fields​

FieldRequiredDescription
typeYesMust be container
versionYesv1
repositoryUrlYesURL of the container registry
artifactPathYesPath to the container image in the registry
artifactVersionYesVersion tag of the container image (e.g., 0.0.1)

Example​

curl -L -X POST 'https://api.cloud.codenow.com/ci/webhook' \
--header 'Accept: application/vnd.codenow.v1+json' \
--header 'Content-Type: application/vnd.codenow.v1+json' \
--header 'X-Codenow-Api-Key: {YOUR_CI_KEY}' \
--data-raw '{
"type": "codenow.ci.result.event",
"version": "application/vnd.codenow.v1+json",
"pipelineId": "my-pipeline-id",
"createdAt": "2024-01-01T00:00:00.000Z",
"payload": [{
"type": "container",
"version": "v1",
"repositoryUrl": "url-to-the-container-repository",
"artifactPath": "path-to-the-container-artifact",
"artifactVersion": "0.0.1"
}]
}'