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

Commit b71fdcb

Browse files
committed
Merge branch 'master' of github.com:squidfunk/terraform-aws-github-ci
2 parents 9b5bb71 + e025af7 commit b71fdcb

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ The following variables can be configured:
117117
- **Description**: S3 bucket to store status badge and artifacts
118118
- **Default**: `"${var.namespace}"` (equal to namespace)
119119

120+
#### `codebuild_environment_variables`
121+
122+
- **Description**: CodeBuild environment variables
123+
- **Default**: []
124+
120125
#### `codebuild_badge_enabled`
121126

122127
- **Description**: Generates a publicly-accessible URL for the projects build

main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,11 @@ resource "aws_codebuild_project" "_" {
116116
}
117117

118118
environment {
119-
compute_type = "${var.codebuild_compute_type}"
120-
type = "LINUX_CONTAINER"
121-
image = "${var.codebuild_image}"
122-
privileged_mode = "${var.codebuild_privileged_mode}"
119+
compute_type = "${var.codebuild_compute_type}"
120+
type = "LINUX_CONTAINER"
121+
image = "${var.codebuild_image}"
122+
privileged_mode = "${var.codebuild_privileged_mode}"
123+
environment_variable = "${var.codebuild_environment_variables}"
123124
}
124125

125126
artifacts {

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ variable "codebuild_bucket" {
8080
default = ""
8181
}
8282

83+
# var.codebuild_environment_variables
84+
variable "codebuild_environment_variables" {
85+
description = "Environment variables to be used for build"
86+
default = []
87+
type = "list"
88+
}
89+
8390
# var.codebuild_badge_enabled
8491
variable "codebuild_badge_enabled" {
8592
description = "Generates a publicly-accessible URL for the projects build badge"

0 commit comments

Comments
 (0)