Skip to content

Commit

Permalink
chore: update examples to use registry (terraform-google-modules#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharathkkb authored and jelinek-wgs committed Jun 13, 2024
1 parent 0b69ccd commit 2f44007
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 8 deletions.
3 changes: 3 additions & 0 deletions build/int.cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-org-runner-mig-native-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-runner-gke-dind/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-runner-gke-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-runner-mig-container-vm-dind/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-runner-mig-container-vm-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-runner-mig-native-packer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/gh-runner-mig-native-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion examples/oidc-simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2f44007

Please sign in to comment.