Skip to content

Commit

Permalink
Add timeout parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Jul 31, 2021
1 parent 3e57463 commit 13487f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ resource "google_cloudbuild_trigger" "deploy" {
name = local.firebase_image
args = ["deploy"]
}

timeout = "${var.cloud_build_timeout_sec}s"
}

trigger_template {
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ variable "cloud_build_trigger" {
description = "If set to true, then run Cloud Build to deploy to Hugo on every commit to main."
}

variable "cloud_build_timeout_sec" {
default = 600
description = "Number of seconds before Cloud Build times out"
}

variable "hugo_env" {
default = []
description = "List of environment variables to pass to Hugo during build without the `HUGO_` prefix."
Expand Down

0 comments on commit 13487f4

Please sign in to comment.