CI Configuration
The ci section of atmos.yaml configures native CI/CD integration, including output variables,
job summaries, status checks, PR comments, and template overrides.
Quick Start
Configuration Reference
ci.enabledExplicitly enable or disable CI mode. When not set, CI mode is auto-detected from environment variables (
CI=trueorGITHUB_ACTIONS=true).Default: Auto-detected
Sections
Configure the CI build cache that restores and saves the toolchain and other regenerable artifacts across CI jobs.
Configure commit status checks for CI pipelines
Configure PR/MR comments with plan summaries
Configure CI output variables for downstream jobs
Configure rich job summaries for CI pipelines
Customize CI job summary and PR comment templates
Full Example
CI Detection
CI mode is auto-enabled when any of these environment variables are set:
CI=true(set by most CI providers)GITHUB_ACTIONS=true(set by GitHub Actions)
Override with the --ci flag or ci.enabled configuration.
Environment Variables
| Variable | Description |
|---|---|
ATMOS_CI | Explicitly enable CI mode (true/false) |
ATMOS_CI_COMMENTS_ENABLED | Override ci.comments.enabled (true/false) |
CI | Standard CI environment variable (set by most CI providers) |
GITHUB_ACTIONS | Set by GitHub Actions runner |
GITHUB_TOKEN / GH_TOKEN | GitHub API token (required for status checks and PR comments) |
GITHUB_OUTPUT | File path for CI output variables (set by GitHub Actions) |
GITHUB_STEP_SUMMARY | File path for job summaries (set by GitHub Actions) |
GITHUB_REPOSITORY | Repository name in owner/repo format |
GITHUB_SHA | Current commit SHA |
Related
- Native CI Overview - Feature overview and quick start
- Native CI Overview - Feature overview
- Planfile Storage - Store and verify planfiles
atmos terraform plan --ci- Plan with CI integrationatmos terraform deploy --ci- Deploy with plan verification