Skip to main content

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.

Experimental

Quick Start

atmos.yaml

ci:
enabled: true
output:
enabled: true
variables:
- has_changes
- has_additions
- has_destructions
- plan_summary
summary:
enabled: true
checks:
enabled: false
comments:
enabled: true
behavior: upsert

Configuration Reference

ci.enabled

Explicitly enable or disable CI mode. When not set, CI mode is auto-detected from environment variables (CI=true or GITHUB_ACTIONS=true).

Default: Auto-detected

Sections

Full Example

atmos.yaml

ci:
# Auto-enabled when CI detected, or set explicitly
enabled: true

# Output variables for downstream jobs
output:
enabled: true
variables:
- has_changes
- has_additions
- has_destructions
- artifact_key
- plan_summary

# Job summary with plan/apply results
summary:
enabled: true

# Commit status checks
checks:
enabled: true
context_prefix: "atmos"

# PR/MR comments
comments:
enabled: true
behavior: upsert

# Template overrides
templates:
base_path: ".atmos/ci/templates"
terraform:
plan: "plan.md"
apply: "apply.md"

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

VariableDescription
ATMOS_CIExplicitly enable CI mode (true/false)
CIStandard CI environment variable (set by most CI providers)
GITHUB_ACTIONSSet by GitHub Actions runner
GITHUB_TOKEN / GH_TOKENGitHub API token (required for status checks and PR comments)
GITHUB_OUTPUTFile path for CI output variables (set by GitHub Actions)
GITHUB_STEP_SUMMARYFile path for job summaries (set by GitHub Actions)
GITHUB_REPOSITORYRepository name in owner/repo format
GITHUB_SHACurrent commit SHA