diff --git a/build/int.cloudbuild.yaml b/build/int.cloudbuild.yaml index 4d4b930..0a8b071 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 && chmod 600 /builder/home/.netrc'] diff --git a/examples/gh-org-runner-mig-native-simple/main.tf b/examples/gh-org-runner-mig-native-simple/main.tf index 7cd9b19..00410eb 100644 --- a/examples/gh-org-runner-mig-native-simple/main.tf +++ b/examples/gh-org-runner-mig-native-simple/main.tf @@ -15,7 +15,9 @@ */ module "runner_mig" { - source = "../../modules/gh-runner-mig-vm" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-mig-vm" + version = "~> 3.0" + create_network = true project_id = var.project_id repo_owner = var.repo_owner diff --git a/examples/gh-runner-gke-dind/main.tf b/examples/gh-runner-gke-dind/main.tf index f2c574c..69ef406 100644 --- a/examples/gh-runner-gke-dind/main.tf +++ b/examples/gh-runner-gke-dind/main.tf @@ -15,7 +15,9 @@ */ module "runner-gke" { - source = "../../modules/gh-runner-gke" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-gke" + version = "~> 3.0" + create_network = true project_id = var.project_id repo_name = var.repo_name diff --git a/examples/gh-runner-gke-simple/main.tf b/examples/gh-runner-gke-simple/main.tf index f2c574c..69ef406 100644 --- a/examples/gh-runner-gke-simple/main.tf +++ b/examples/gh-runner-gke-simple/main.tf @@ -15,7 +15,9 @@ */ module "runner-gke" { - source = "../../modules/gh-runner-gke" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-gke" + version = "~> 3.0" + create_network = true project_id = var.project_id repo_name = var.repo_name diff --git a/examples/gh-runner-mig-container-vm-dind/main.tf b/examples/gh-runner-mig-container-vm-dind/main.tf index 21f3f99..4702ba5 100644 --- a/examples/gh-runner-mig-container-vm-dind/main.tf +++ b/examples/gh-runner-mig-container-vm-dind/main.tf @@ -15,7 +15,9 @@ */ module "runner-mig-dind" { - source = "../../modules/gh-runner-mig-container-vm" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-mig-container-vm" + version = "~> 3.0" + create_network = true project_id = var.project_id image = var.image diff --git a/examples/gh-runner-mig-container-vm-simple/main.tf b/examples/gh-runner-mig-container-vm-simple/main.tf index 82af714..ed893ad 100644 --- a/examples/gh-runner-mig-container-vm-simple/main.tf +++ b/examples/gh-runner-mig-container-vm-simple/main.tf @@ -15,7 +15,9 @@ */ module "runner-mig" { - source = "../../modules/gh-runner-mig-container-vm" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-mig-container-vm" + version = "~> 3.0" + create_network = true project_id = var.project_id image = var.image diff --git a/examples/gh-runner-mig-native-packer/main.tf b/examples/gh-runner-mig-native-packer/main.tf index b19b4ac..3f3f20f 100644 --- a/examples/gh-runner-mig-native-packer/main.tf +++ b/examples/gh-runner-mig-native-packer/main.tf @@ -15,7 +15,9 @@ */ module "runner-mig" { - source = "../../modules/gh-runner-mig-vm" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-mig-vm" + version = "~> 3.0" + create_network = true project_id = var.project_id repo_name = var.repo_name diff --git a/examples/gh-runner-mig-native-simple/main.tf b/examples/gh-runner-mig-native-simple/main.tf index 49eaf21..8d587f0 100644 --- a/examples/gh-runner-mig-native-simple/main.tf +++ b/examples/gh-runner-mig-native-simple/main.tf @@ -15,7 +15,9 @@ */ module "runner-mig" { - source = "../../modules/gh-runner-mig-vm" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-mig-vm" + version = "~> 3.0" + create_network = true project_id = var.project_id repo_name = var.repo_name diff --git a/examples/oidc-simple/main.tf b/examples/oidc-simple/main.tf index d99901e..a8fae5b 100644 --- a/examples/oidc-simple/main.tf +++ b/examples/oidc-simple/main.tf @@ -27,7 +27,9 @@ resource "google_project_iam_member" "project" { } module "oidc" { - source = "../../modules/gh-oidc" + source = "terraform-google-modules/github-actions-runners/google//modules/gh-oidc" + version = "~> 3.0" + project_id = var.project_id pool_id = "example-pool" provider_id = "example-gh-provider"