Skip to main content

git-tag

The git-tag result subtype reports the Git tag of the released version. CodeNOW uses the tag to load the default deployment configuration for the resource.

Payload Fields

FieldRequiredDescription
typeYesMust be git-tag
versionYesv1
tagYesGit tag name (e.g., v1.0.0)

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": "git-tag",
"version": "v1",
"tag": "v1.0.0"
}]
}'