Github Actions
Configuration
Pull Request example
name: Terrakube Plan
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
name: "Running Terrakube Plan"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: AzBuilder/terrakube-action-github@main
with:
TERRAKUBE_TOKEN: ${{ secrets.TERRAKUBE_PAT }}
TERRAKUBE_TEMPLATE: "Terraform-Plan"
TERRAKUBE_ENDPOINT: ${{ secrets.TERRAKUBE_ENDPOINT }}
TERRAKUBE_BRANCH: ${{ github.head_ref }}
TERRAKUBE_ORGANIZATION: "terrakube_organization_name"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHOW_OUTPUT: truePush Main branch
Terrakube Variables
GitHub Action Inputs
Variable
Usage
Terraform Version Configuration
Build GitHub Action
Was this helpful?