Skip to content

Commit

Permalink
use environment name for source branch
Browse files Browse the repository at this point in the history
  • Loading branch information
finlay-jisc committed Nov 27, 2024
1 parent 21bfec4 commit 233e080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion infra/modules/codepipeline/codebuild.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ resource "aws_codebuild_project" "deploy-docker-image" {
}
}

source_version = "main"
source_version = var.environment

source {
type = "CODEPIPELINE"
Expand Down
2 changes: 1 addition & 1 deletion infra/modules/codepipeline/codepipeline.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "aws_codepipeline" "docker-image-codepipeline" {
configuration = {
ConnectionArn = data.aws_ssm_parameter.github_codestar_connection_arn.value
FullRepositoryId = "JiscSD/octopus"
BranchName = "main"
BranchName = var.environment
OutputArtifactFormat = "CODE_ZIP"
}
}
Expand Down

0 comments on commit 233e080

Please sign in to comment.