Skip to content

Commit

Permalink
fix: expose GAR repo name via substitutions in triggers (#97)
Browse files Browse the repository at this point in the history
* fix: expose GAR repo name to triggers

* bump kitchen test timeout
  • Loading branch information
bharathkkb authored Feb 25, 2021
1 parent 2f9b7f9 commit 9ac97a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
driver:
name: terraform
verify_version: false
command_timeout: 1200

provisioner:
name: terraform
Expand Down
2 changes: 2 additions & 0 deletions modules/cloudbuild/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ resource "google_cloudbuild_trigger" "master_trigger" {
_ORG_ID = var.org_id
_BILLING_ID = var.billing_account
_DEFAULT_REGION = var.default_region
_GAR_REPOSITORY = local.gar_name
_TF_SA_EMAIL = var.terraform_sa_email
_STATE_BUCKET_NAME = var.terraform_state_bucket
_ARTIFACT_BUCKET_NAME = google_storage_bucket.cloudbuild_artifacts.name
Expand Down Expand Up @@ -197,6 +198,7 @@ resource "google_cloudbuild_trigger" "non_master_trigger" {
_ORG_ID = var.org_id
_BILLING_ID = var.billing_account
_DEFAULT_REGION = var.default_region
_GAR_REPOSITORY = local.gar_name
_TF_SA_EMAIL = var.terraform_sa_email
_STATE_BUCKET_NAME = var.terraform_state_bucket
_ARTIFACT_BUCKET_NAME = google_storage_bucket.cloudbuild_artifacts.name
Expand Down

0 comments on commit 9ac97a3

Please sign in to comment.