Marks a CI job as a deployment.
The mark
command specifies that a CI job executes a deployment.
datadog-ci deployment mark [--env] [--revision] [--service] [--is-rollback] [--tags] [--no-fail]
For example:
datadog-ci deployment mark --env prod --service payment-service --revision v1.1.0 --tags team:backend --no-fail
--env
is the environment to which this deployment is performed. For example,prod
.--revision
is the revision/version that is being deployed. For example,1.0.0
orv123-456
.--service
the name of the service being deployed. For example,payment-service
.--is-rollback
specifies that the deployment is a rollback.--tags
is an array of key value pairs in the formatkey:value
. These tags are added to the deployment event shown in Datadog.--no-fail
(default:false
) will prevent the deployment command from failing if there are issues submitting the data.
DD_API_KEY
(required): API key used to authenticate the requests.DD_SITE
: choose your Datadog site. For example, datadoghq.com or datadoghq.eu.
Additional helpful documentation, links, and articles: