From 1c03b5dea422082cde3723dc9d68927aa2cc21d8 Mon Sep 17 00:00:00 2001 From: bharathkkb Date: Mon, 18 Dec 2023 20:19:08 +0000 Subject: [PATCH] chore: update examples to use registry --- build/int.cloudbuild.yaml | 3 +++ examples/automatic-labelling-folder/main.tf | 6 ++++-- examples/automatic-labelling-from-localhost/main.tf | 6 ++++-- examples/automatic-labelling-from-repository/main.tf | 6 ++++-- examples/delete-vms-without-cmek/main.tf | 6 ++++-- examples/dynamic-files/main.tf | 3 ++- 6 files changed, 21 insertions(+), 9 deletions(-) diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index 33758b7..59a2e69 100644 --- a/build/int.cloudbuild.yaml +++ b/build/int.cloudbuild.yaml @@ -14,6 +14,9 @@ timeout: 3600s steps: +- id: swap-module-refs + name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' + args: ['module-swapper'] - id: prepare name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS' args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment'] diff --git a/examples/automatic-labelling-folder/main.tf b/examples/automatic-labelling-folder/main.tf index 5449889..d6b6dde 100644 --- a/examples/automatic-labelling-folder/main.tf +++ b/examples/automatic-labelling-folder/main.tf @@ -20,7 +20,8 @@ resource "random_pet" "main" { } module "event_folder_log_entry" { - source = "../../modules/event-folder-log-entry" + source = "terraform-google-modules/event-function/google//modules/event-folder-log-entry" + version = "~> 3.0" filter = <