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
| Field | Required | Description |
|---|---|---|
type | Yes | Must be container |
version | Yes | v1 |
repositoryUrl | Yes | URL of the container registry |
artifactPath | Yes | Path to the container image in the registry |
artifactVersion | Yes | Version 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"
}]
}'