Skip to content

Commit

Permalink
feat: add spec repository (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorCastelli authored Nov 19, 2023
1 parent ea904b7 commit 97df6bb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions stages/repositories/spec.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module "specification" {
source = "../../modules/github-repo"
name = "spec"
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.infra_live.environment
branch_pattern = module.specification.main_branch
}

0 comments on commit 97df6bb

Please sign in to comment.