Skip to content

scarowar/terraform-branch-deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Terraform Branch Deploy

MIT License OpenSSF Scorecard Quality Gate Status CodeQL Dependabot pre-commit.ci status

Terraform Branch Deploy Cover

📖 Documentation (GitHub Pages)

📝 Overview

Terraform Branch Deploy extends branch-deploy with first-class support for Terraform infrastructure automation.

⭐ Key Features

  • PR-driven automation: Trigger plan and apply by commenting on pull requests.
  • Environment targeting: Define environments (dev, staging, prod, etc.) in .tf-branch-deploy.yml with per-environment config, var files, and working directories.
  • Safe deployments: Preview every change with a Terraform plan before apply, and support instant rollbacks to a stable branch.
  • Environment locking: Prevent concurrent or conflicting deployments with automatic and manual environment locks.
  • Custom arguments: Pass extra Terraform CLI arguments from PR comments and fine-tune behavior per environment or globally via .tf-branch-deploy.yml.
  • Enterprise ready: Works with GitHub Enterprise Server (GHES) and public GitHub, with automated GHES release tagging.
  • Workflow integration: Use the skip input to extract environment context for advanced, multi-step workflows without running Terraform operations.

📸 See It In Action

Watch Terraform Branch Deploy in action - from comment to Terraform infrastructure deployment:

terraform-branch-deploy-demo.mp4

📃 License

MIT License - see LICENSE for details.


🔗 Quick Links

About

Deploy Terraform infrastructure changes through pull request comments using IssueOps and branch deployments.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 5