Skip to content

Commit

Permalink
Added stage environment variable for tagging (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-pinatti authored and aknysh committed Jan 31, 2018
1 parent 9241cb9 commit 0ef1685
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ resource "aws_codebuild_project" "default" {
"value" = "${signum(length(var.image_tag)) == 1 ? var.image_tag : "latest"}"
}

environment_variable {
"name" = "STAGE"
"value" = "${var.stage}"
}

environment_variable {
"name" = "GITHUB_TOKEN"
"value" = "${var.github_token}"
Expand Down

0 comments on commit 0ef1685

Please sign in to comment.