This repository contains a collection of GitHub Actions workflow templates that can be used with various types of repositories to automate the build, test, and deployment of applications and infrastructure.
Please refer to the following documentation for more information on the workflows:
- Terraform Plan & Apply (AWS) - Automated Terraform deployment pipeline for AWS
- Terraform Module Validation - Validate Terraform modules
- Terraform Module Release - Release and publish Terraform modules
- Terraform Destroy (AWS) - Safely destroy Terraform-managed infrastructure
- Terraform Drift Detection - Detect configuration drift in deployed infrastructure
- Terragrunt Plan & Apply (AWS) - Automated Terragrunt deployment pipeline for AWS
- Terragrunt Manual Dispatch - Manually trigger Terragrunt operations
- Docker Build, Push & Security Scan - Build, scan, and push Docker images
- GitHub Workflow Validation - Validate GitHub Actions workflow files
- Template Update - Keep repository files in sync with templates
The workflow templates in this repository are designed to be used with GitHub's deployment protection and approval feature. This feature allows you to require manual approval before a deployment can be executed. When merging to main branch we automatically use a 'production' environment, this can be configured with the repository setting to ensure all changes to this environment must be manually approved before applying the change.
- Go to the repository settings
- Click on the
Branchestab - Click on the
Add rulebutton - In the
Branch name patternfield, enter the branch name you want to protect (e.g.main) - Check the
Require pull request reviews before mergingcheckbox - Check the
Require status checks to pass before mergingcheckbox - Check the
Require branches to be up to date before mergingcheckbox - Check the
Include administratorscheckbox - Click on
Environmentsand choose the environment you want to protect (e.g.production) - Check the
Require reviewerscheckbox and select the reviewers you want to require approval from - Check the
Prevent self-reviewcheckbox
This project is distributed under the Apache License, Version 2.0.