Author a Spacelift stack with a Git push policy written in Rego that skips CI for changes only touching documentation files, and set a custom runner image
In the Spacelift UI or via Terraform using the spacelift_stack resource, create a stack pointing to your Git repository and set the runner_image to a custom Docker image hosted in a registry accessible by Spacelift
Write a push policy in Rego with a 'track' rule and an 'ignore' rule; set 'ignore = true' when all changed files match a pattern like 'docs/.*' or '.*\.md'
Use the 'input.push.affected_files' array in the Rego policy to evaluate changed file paths and determine whether to ignore the run
Attach the push policy to the stack via the Spacelift UI or using the spacelift_policy_attachment resource in Terraform
Test the policy by pushing a commit that only modifies a Markdown file and confirming in the Spacelift run history that the run is skipped rather than queued
Known gotchas
Spacelift push policies use 'track', 'propose', and 'ignore' rules; returning true for 'ignore' takes precedence and overrides 'track' even if both evaluate to true
The runner_image must be accessible from Spacelift's worker pool; private registry images require configuring worker pool credentials or using Spacelift's private worker pool with pre-authenticated Docker access
Policy changes in Spacelift are applied immediately to subsequent pushes but do not retroactively affect in-progress or queued runs
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp