|
@@ -15,6 +15,10 @@ resource "aws_codebuild_project" "this_no_artifact" {
|
|
|
type = "GITHUB_ENTERPRISE"
|
|
|
location = data.github_repository.this.http_clone_url
|
|
|
report_build_status = true
|
|
|
+
|
|
|
+ git_submodules_config {
|
|
|
+ fetch_submodules = false
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
environment {
|
|
@@ -85,7 +89,17 @@ resource "aws_ecr_lifecycle_policy" "this-nginx" {
|
|
|
|
|
|
resource "aws_codebuild_webhook" "this" {
|
|
|
project_name = var.name
|
|
|
- branch_filter = var.webhook_branch_filter
|
|
|
+ filter_group {
|
|
|
+ filter {
|
|
|
+ type = "EVENT"
|
|
|
+ pattern = "PUSH"
|
|
|
+ }
|
|
|
+
|
|
|
+ filter {
|
|
|
+ type = "HEAD_REF"
|
|
|
+ pattern = "^refs\\/heads\\/release\\/.*$"
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
depends_on = [ aws_codebuild_project.this_no_artifact ]
|
|
|
}
|