Skip to content

A Terraform provider for a managing Github Deployment Environment branch policies

License

Notifications You must be signed in to change notification settings

form3tech-oss/terraform-provider-githubdeploymentenvironment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}