Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

Commit 1456b35

Browse files
Stretch96squidfunk
authored andcommitted
Added support to configure buildspec.yml location
1 parent 010469d commit 1456b35

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

161166
The following outputs are exported:

main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)