Track events from GitLab CI/CD pipelines using the OpsTrails CI component.
OPSTRAILS_API_KEY with a READ_WRITE API keyinclude:
- component: gitlab.com/opstrailsdev/gitlab-ci-component/track-event@v1
inputs:
api_key: $OPSTRAILS_API_KEY
type: deployment
source: "//gitlab.com/$CI_PROJECT_PATH"
subject: production
version: $CI_COMMIT_TAG| Input | Required | Description |
|---|---|---|
api_key | required | OpsTrails API key (READ_WRITE scope) |
type | required | Event type |
source | optional | Event source URI (defaults to project path) |
subject | optional | Target environment |
version | optional | Release version or tag |