Skip to content

Commit

Permalink
allow branch name to be configured;
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcac00 committed Nov 22, 2024
1 parent ba59f0d commit f914805
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ resource "aws_codepipeline" "leafsteroids_api" {
action {
category = "Source"
configuration = {
"BranchName" = "feature/dockerize"
"BranchName" = var.branch_name
"ConnectionArn" = var.connection_arn
"DetectChanges" = "false"
"FullRepositoryId" = "mongodb-developer/leafsteroids"
Expand Down
5 changes: 5 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ variable "game_client_port" {
description = "The port of the game client"
default = 80
}

variable "branch_name" {
description = "The name of the branch"
}

2 changes: 1 addition & 1 deletion terraform/website.tf
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ resource "aws_codepipeline" "leafsteroids_website" {
action {
category = "Source"
configuration = {
"BranchName" = "feature/dockerize"
"BranchName" = var.branch_name
"ConnectionArn" = var.connection_arn
"DetectChanges" = "false"
"FullRepositoryId" = "mongodb-developer/leafsteroids"
Expand Down

0 comments on commit f914805

Please sign in to comment.