Skip to content

Commit 0ef1685

Browse files
ivan-pinattiaknysh
authored andcommitted
Added stage environment variable for tagging (#13)
1 parent 9241cb9 commit 0ef1685

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ resource "aws_codebuild_project" "default" {
106106
"value" = "${signum(length(var.image_tag)) == 1 ? var.image_tag : "latest"}"
107107
}
108108

109+
environment_variable {
110+
"name" = "STAGE"
111+
"value" = "${var.stage}"
112+
}
113+
109114
environment_variable {
110115
"name" = "GITHUB_TOKEN"
111116
"value" = "${var.github_token}"

0 commit comments

Comments
 (0)