This repository was archived by the owner on Apr 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,11 @@ The following variables can be configured:
156156- ** Description** : S3 bucket to store status badge and artifacts
157157- ** Default** : ` "github-ci" ` (equal to namespace)
158158
159+ #### ` codebuild_buildspec `
160+
161+ - ** Description** : The build spec declaration to use for this build project's related builds.
162+ - ** Default** : ` "" `
163+
159164### Outputs
160165
161166The following outputs are exported:
Original file line number Diff line number Diff line change @@ -121,8 +121,9 @@ resource "aws_codebuild_project" "_" {
121121 service_role = " ${ aws_iam_role . codebuild . arn } "
122122
123123 source {
124- type = " GITHUB"
125- location = " ${ data . template_file . codebuild_source_location . rendered } "
124+ type = " GITHUB"
125+ location = " ${ data . template_file . codebuild_source_location . rendered } "
126+ buildspec = " ${ var . codebuild_buildspec } "
126127
127128 auth {
128129 type = " OAUTH"
Original file line number Diff line number Diff line change @@ -79,3 +79,9 @@ variable "codebuild_bucket" {
7979 description = " S3 bucket to store status badge and artifacts"
8080 default = " "
8181}
82+
83+ # var.codebuild_buildspec
84+ variable "codebuild_buildspec" {
85+ description = " The build spec declaration to use for this build project's related builds."
86+ default = " "
87+ }
You can’t perform that action at this time.
0 commit comments