Manual
CLI
API
Log in Get started free

ct snippet

Print a ready-made CI job for GitHub Actions or GitLab CI.

Prints a job that runs ct push. It does not need an API key.

SH
ct snippet github   # a GitHub Actions workflow
ct snippet gitlab   # a job for .gitlab-ci.yml

The GitHub workflow runs on pushes and pull requests and skips pull requests from forks, which cannot read secrets. The GitLab job runs for branches and merge requests. Both read the key from CT_API_KEY: add it as a secret (GitHub) or a masked CI/CD variable (GitLab).

See Use the CLI in CI to extend the job, for example with a pull step in a release.