Skip to content

Commit

Permalink
adding config + pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorOKane-Kainos committed Jul 3, 2024
1 parent 9d33687 commit c64194d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
module "tags" {
source = "git::https://github.com/hmcts/terraform-module-common-tags.git?ref=master"
environment = var.env
product = var.product
builtFrom = var.builtFrom
}

# Check if branches exist
data "github_branch" "existing_branches" {
for_each = { for combo in local.repo_branch_combinations : "${combo.repo}:${combo.branch}" => combo }
Expand Down Expand Up @@ -36,4 +43,4 @@ resource "github_branch_protection_v3" "branch_protection" {

output "existing_branches" {
value = data.github_branch.existing_branches
}
}

0 comments on commit c64194d

Please sign in to comment.