Skip to content

Commit

Permalink
fix: remove spec environments
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorCastelli committed Nov 19, 2023
1 parent 2f7ff7a commit be193d9
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions stages/repositories/spec.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,4 @@ module "specification" {
description = "This is the powerd6 specification, and it documents how the project behaves."
topics = ["specification", "documentation"]
org_administrators = var.org_administrators
}

resource "github_repository_environment" "spec_preview" {
environment = "preview"
repository = module.specification.name
deployment_branch_policy {
protected_branches = true
custom_branch_policies = false
}
}

resource "github_repository_environment" "spec_release" {
environment = "release"
repository = module.specification.name
deployment_branch_policy {
protected_branches = false
custom_branch_policies = true
}
}

resource "github_repository_environment_deployment_policy" "spec_release_main" {
repository = module.specification.name
environment = github_repository_environment.spec_release.environment
branch_pattern = module.specification.main_branch
}

0 comments on commit be193d9

Please sign in to comment.