From 2e9af58e808c3af5f85e7d29571f4583e7f59a83 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Fri, 4 Jan 2019 14:01:32 -0800 Subject: [PATCH] Update version_2_upgrade.html.markdown --- .../docs/version_2_upgrade.html.markdown | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/third_party/terraform/website/docs/version_2_upgrade.html.markdown b/third_party/terraform/website/docs/version_2_upgrade.html.markdown index e8a67b46f1d6..2eb2d3a39048 100644 --- a/third_party/terraform/website/docs/version_2_upgrade.html.markdown +++ b/third_party/terraform/website/docs/version_2_upgrade.html.markdown @@ -24,6 +24,7 @@ Upgrade topics: - [Resource: `google_bigtable_instance`](#resource-google_bigtable_instance) - [Resource: `google_binary_authorizaton_attestor`](#resource-google_binary_authorization_attestor) - [Resource: `google_binary_authorizaton_policy`](#resource-google_binary_authorization_policy) +- [Resource: `google_cloudbuild_trigger`](#resource-google_cloudbuild_trigger) - [Resource: `google_cloudfunctions_function`](#resource-google_cloudfunctions_function) - [Resource: `google_compute_backend_service`](#resource-google_compute_backend_service) - [Resource: `google_compute_disk`](#resource-google_compute_disk) @@ -201,6 +202,45 @@ Use the [`google-beta` provider](#google-beta-provider) to use these resources. Use the [`google-beta` provider](#google-beta-provider) to use these resources. +## Resource: `google_cloudbuild_trigger` + +### `build.step.args` is now a list instead of space separated strings. + +Example updated configuration: + +```hcl +resource "google_cloudbuild_trigger" "build_trigger" { + trigger_template { + branch_name = "master-updated" + repo_name = "some-repo-updated" + } + + build { + images = ["gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"] + tags = ["team-a", "service-b", "updated"] + + step { + name = "gcr.io/cloud-builders/gsutil" + args = ["cp", "gs://mybucket/remotefile.zip", "localfile-updated.zip"] + } + + step { + name = "gcr.io/cloud-builders/go" + args = ["build", "my_package_updated"] + } + + step { + name = "gcr.io/cloud-builders/docker" + args = ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA", "-f", "Dockerfile", "."] + } + step { + name = "gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA" + args = ["test"] + } + } +} +``` + ## Resource: `google_cloudfunctions_function` ### `trigger_bucket`, `trigger_topic`, and `retry_on_failure` have been removed