A Terraform provider for managing files in GitHub repositories.
Download the relevant binary from releases and copy it to $HOME/.terraform.d/plugins/
.
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.
The github-deployment-environment_branch_policy
resource represents a deployment environment branch policy.
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. |
resource "github-deployment-environment_branch_policy" "my-resource" {
repository = "my-repo"
environment = "test-environment"
branch_pattern = "master"
}