tools/cloud-build/provision/weekly_build_dependency_check.tf (21 lines of code) (raw):

# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. resource "google_cloudbuild_trigger" "weekly_build_dependency_check" { name = "WEEKLY-build-dependency-check" description = "A set of tests to make sure no extra dependencies creep in" tags = [local.notify_chat_tag] git_file_source { path = "tools/cloud-build/dependency-checks/hpc-toolkit-go-builder.yaml" revision = local.ref_develop uri = var.repo_uri repo_type = "GITHUB" } source_to_build { uri = var.repo_uri ref = local.ref_develop repo_type = "GITHUB" } } module "weekly_build_dependency_check_schedule" { source = "./trigger-schedule" trigger = google_cloudbuild_trigger.weekly_build_dependency_check schedule = "0 7 * * MON" }