Skip to content

Commit e76237c

Browse files
authored
chore: update examples to use registry (#124)
1 parent fff7d20 commit e76237c

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

build/int.cloudbuild.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
timeout: 3600s
1616
steps:
17+
- id: swap-module-refs
18+
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
19+
args: ['module-swapper']
1720
- id: prepare
1821
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
1922
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && prepare_environment']

examples/instance_with_advanced_options/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ locals {
1919
}
2020

2121
module "gce-advanced-container" {
22-
source = "../../"
22+
source = "terraform-google-modules/container-vm/google"
23+
version = "~> 3.0"
2324

2425
container = {
2526
image = "busybox"

examples/instance_with_attached_disk/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ locals {
2222
}
2323

2424
module "gce-container" {
25-
source = "../../"
25+
source = "terraform-google-modules/container-vm/google"
26+
version = "~> 3.0"
2627

2728
container = {
2829
image = var.image

examples/instance_with_config_file/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ locals {
2424
}
2525

2626
module "gce-container" {
27-
source = "../../"
27+
source = "terraform-google-modules/container-vm/google"
28+
version = "~> 3.0"
2829

2930
cos_image_name = var.cos_image_name
3031

examples/managed_instance_group/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ provider "google-beta" {
2929
project = var.project_id
3030
}
3131
module "gce-container" {
32-
source = "../../"
32+
source = "terraform-google-modules/container-vm/google"
33+
version = "~> 3.0"
34+
3335
container = {
3436
image = var.image
3537
}

examples/simple_instance/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ locals {
2222
}
2323

2424
module "gce-container" {
25-
source = "../../"
25+
source = "terraform-google-modules/container-vm/google"
26+
version = "~> 3.0"
2627

2728
cos_image_name = var.cos_image_name
2829

0 commit comments

Comments
 (0)