...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen/generated/samples/CloudBuild-CloudBuildTrigger-cloudbuild_trigger_manual/main.tf

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen/generated/samples/CloudBuild-CloudBuildTrigger-cloudbuild_trigger_manual

     1/**
     2 * Copyright 2022 Google LLC
     3 *
     4 * Licensed under the Apache License, Version 2.0 (the "License");
     5 * you may not use this file except in compliance with the License.
     6 * You may obtain a copy of the License at
     7 *
     8 *      http://www.apache.org/licenses/LICENSE-2.0
     9 *
    10 * Unless required by applicable law or agreed to in writing, software
    11 * distributed under the License is distributed on an "AS IS" BASIS,
    12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13 * See the License for the specific language governing permissions and
    14 * limitations under the License.
    15 */
    16
    17```hcl
    18
    19resource "google_cloudbuild_trigger" "manual-trigger" {
    20  name        = "manual-build"
    21
    22  source_to_build {
    23    uri       = "https://hashicorp/terraform-provider-google-beta"
    24    ref       = "refs/heads/main"
    25    repo_type = "GITHUB"
    26  }
    27
    28  git_file_source {
    29    path      = "cloudbuild.yaml"
    30    uri       = "https://hashicorp/terraform-provider-google-beta"
    31    revision  = "refs/heads/main"
    32    repo_type = "GITHUB"
    33  }
    34
    35  
    36  // If this is set on a build, it will become pending when it is run, 
    37  // and will need to be explicitly approved to start.
    38  approval_config {
    39     approval_required = true 
    40  }
    41   
    42  
    43}
    44```

View as plain text