Skip to content

Commit 0bf7588

Browse files
authored
chore: update examples to use registry (#26)
1 parent 34166a6 commit 0bf7588

File tree

9 files changed

+27
-12
lines changed

9 files changed

+27
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The resources/services/activations/deletions that this module will create/trigge
1313

1414
```hcl
1515
module "cloud_workflow" {
16-
source = "terraform-google-modules/cloud-workflow/google"
16+
source = "GoogleCloudPlatform/cloud-workflows/google"
1717
version = "~> 0.1"
1818
1919
workflow_name = "wf-sample"
@@ -52,7 +52,7 @@ EOF
5252

5353
```hcl
5454
module "cloud_workflow" {
55-
source = "terraform-google-modules/cloud-workflow/google"
55+
source = "GoogleCloudPlatform/cloud-workflows/google"
5656
version = "~> 0.1"
5757
5858
workflow_name = "wf-sample"

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/gcs_event_arc_trigger_workflow/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ module "gcs_buckets" {
8585
}
8686

8787
module "cloud_workflow" {
88-
source = "../.."
88+
source = "GoogleCloudPlatform/cloud-workflows/google"
89+
version = "~> 0.1"
90+
8991
project_id = var.project_id
9092
workflow_name = "wf-gcs-eventarc"
9193
region = "us-central1"

examples/pubsub_event_arc_trigger_workflow/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ module "service_account" {
3232
}
3333

3434
module "cloud_workflow" {
35-
source = "../.."
35+
source = "GoogleCloudPlatform/cloud-workflows/google"
36+
version = "~> 0.1"
37+
3638
project_id = var.project_id
3739
workflow_name = "wf-pubsub-eventarc"
3840
region = "us-central1"

examples/schedule_workflow/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ module "service_account" {
2727
}
2828

2929
module "cloud_workflow" {
30-
source = "../.."
30+
source = "GoogleCloudPlatform/cloud-workflows/google"
31+
version = "~> 0.1"
32+
3133
project_id = var.project_id
3234
workflow_name = "wf-sample"
3335
region = "us-central1"

examples/schedule_workflow_autocreate_sa/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ data "google_compute_default_service_account" "default" {
1818
}
1919

2020
module "cloud_workflow" {
21-
source = "../.."
21+
source = "GoogleCloudPlatform/cloud-workflows/google"
22+
version = "~> 0.1"
23+
2224
project_id = var.project_id
2325
workflow_name = "wf-sample-with-sa"
2426
region = "us-central1"

examples/schedule_workflow_with_arguments/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ module "service_account" {
2727
}
2828

2929
module "cloud_workflow" {
30-
source = "../.."
30+
source = "GoogleCloudPlatform/cloud-workflows/google"
31+
version = "~> 0.1"
32+
3133
project_id = var.project_id
3234
workflow_name = "wf-sample-with-args"
3335
region = "us-central1"

test/setup/main.tf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ module "project" {
1818
source = "terraform-google-modules/project-factory/google"
1919
version = "~> 13.0"
2020

21-
name = "ci-cloud-workflow"
22-
random_project_id = "true"
23-
org_id = var.org_id
24-
folder_id = var.folder_id
25-
billing_account = var.billing_account
21+
name = "ci-cloud-workflow"
22+
random_project_id = "true"
23+
org_id = var.org_id
24+
folder_id = var.folder_id
25+
billing_account = var.billing_account
26+
default_service_account = "keep"
2627

2728
activate_apis = [
2829
"iam.googleapis.com",

versions.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ terraform {
2323
}
2424

2525
random = {
26+
source = "hashicorp/random"
2627
version = "~> 3.4.3"
2728
}
2829
}

0 commit comments

Comments
 (0)