This repository contains reusable CI/CD GitHub workflows for our organization.
jobs:
# Terraform plan only
terraform-plan:
uses: gustvision/gh-cicd-workflows/.github/workflows/cd-terraform.yml@main
with:
tf_folder: "path/to/your/terraform/folder"
aws_role_arn: arn:aws:iam::111111111111:role/my-github-actions-role-test
secrets:
token: ${{ secrets.ORG_PRIVATE_REPOSITORY_READ_ACCESS_TOKEN }}
# Terraform plan + apply
terraform-apply:
uses: gustvision/gh-cicd-workflows/.github/workflows/cd-terraform.yml@main
with:
tf_folder: "path/to/your/terraform/folder"
tf_apply: true
aws_role_arn: arn:aws:iam::222222222222:role/my-github-actions-role-prod
secrets:
token: ${{ secrets.ORG_PRIVATE_REPOSITORY_READ_ACCESS_TOKEN }}