A Terraform provider for managing files in GitHub repositories.
Installation
Download the relevant binary from releases and copy it to $HOME/.terraform.d/plugins/
.
Configuration
The following provider block variables are available for configuration:
Name |
Description |
github_token |
A GitHub authorisation token with repo permissions. |
github_owner |
The name of the Github organization in which to use the provider. |
Alternatively, these values can be read from environment variables.
Resources
github-deployment-environment_branch_policy
The github-deployment-environment_branch_policy
resource represents a deployment environment branch policy.
⚠ Custom branch policies must be enabled, otherwise the provider is gonna fail!
Attributes
Name |
Description |
repository |
The name of the repository. |
environment |
The name of the environment. |
branch_pattern |
The branch pattern on which to restrict environment deployment on. |
Example
resource "github-deployment-environment_branch_policy" "my-resource" {
repository = "my-repo"
environment = "test-environment"
branch_pattern = "master"
}