Skip to content

Commit cdd4910

Browse files
authored
chore: Add release please config (#46)
* add release please config * newline * update setup * relax example TF versions * bump example providers * pin devtools * use nodejs10 runtime as nodejs8 is deprecated * docs * fix setup
1 parent 1f1c8c5 commit cdd4910

File tree

14 files changed

+25
-23
lines changed

14 files changed

+25
-23
lines changed

.github/release-please.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
releaseType: terraform-module
2+
handleGHRelease: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 0.12.0
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module "localhost_function" {
6161
| environment\_variables | A set of key/value environment variable pairs to assign to the function. | map(string) | `<map>` | no |
6262
| event\_trigger | A source that fires events in response to a condition in another service. | map(string) | n/a | yes |
6363
| event\_trigger\_failure\_policy\_retry | A toggle to determine if the function should be retried on failure. | bool | `"false"` | no |
64+
| ingress\_settings | The ingress settings for the function | string | `"ALLOW_ALL"` | no |
6465
| labels | A set of key/value label pairs to assign to the Cloud Function. | map(string) | `<map>` | no |
6566
| name | The name to apply to any nameable resources. | string | n/a | yes |
6667
| project\_id | The ID of the project to which resources will be applied. | string | n/a | yes |
@@ -70,8 +71,6 @@ module "localhost_function" {
7071
| source\_dependent\_files | A list of any Terraform created `local_file`s that the module will wait for before creating the archive. | object | `<list>` | no |
7172
| source\_directory | The pathname of the directory which contains the function source code. | string | n/a | yes |
7273
| timeout\_s | The amount of time in seconds allotted for the execution of the function. | number | `"60"` | no |
73-
| ingress\_settings | The ingress settings for the function | string | `"ALLOW_ALL"` | no |
74-
7574

7675
## Outputs
7776

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ tags:
3838
- 'integration'
3939
substitutions:
4040
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
41-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0'
41+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tags:
2121
- 'lint'
2222
substitutions:
2323
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
24-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0'
24+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '0.12.0'

examples/automatic-labelling-folder/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
*/
1616

1717
terraform {
18-
required_version = "~> 0.12.0"
18+
required_version = ">= 0.12"
1919
}
2020

2121
provider "archive" {
2222
version = "~> 1.0"
2323
}
2424

2525
provider "google" {
26-
version = "~> 2.1"
26+
version = "~> 3.39"
2727
}
2828

2929
provider "random" {
@@ -69,7 +69,7 @@ module "localhost_function" {
6969
project_id = var.project_id
7070
region = var.region
7171
source_directory = "${path.module}/function_source"
72-
runtime = "nodejs8"
72+
runtime = "nodejs10"
7373
}
7474

7575
resource "null_resource" "wait_for_function" {

examples/automatic-labelling-from-localhost/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
*/
1616

1717
terraform {
18-
required_version = "~> 0.12.0"
18+
required_version = ">= 0.12"
1919
}
2020

2121
provider "archive" {
2222
version = "~> 1.0"
2323
}
2424

2525
provider "google" {
26-
version = "~> 2.1"
26+
version = "~> 3.39"
2727
}
2828

2929
provider "random" {
@@ -61,7 +61,7 @@ module "localhost_function" {
6161
project_id = var.project_id
6262
region = var.region
6363
source_directory = "${path.module}/function_source"
64-
runtime = "nodejs8"
64+
runtime = "nodejs10"
6565
}
6666

6767
resource "null_resource" "wait_for_function" {

examples/automatic-labelling-from-repository/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
*/
1616

1717
terraform {
18-
required_version = "~> 0.12.0"
18+
required_version = ">= 0.12"
1919
}
2020

2121
provider "archive" {
2222
version = "~> 1.0"
2323
}
2424

2525
provider "google" {
26-
version = "~> 2.1"
26+
version = "~> 3.39"
2727
}
2828

2929
provider "random" {
@@ -80,7 +80,7 @@ module "repository_function" {
8080

8181
description = "Labels resource with owner information."
8282
entry_point = "labelResource"
83-
runtime = "nodejs8"
83+
runtime = "nodejs10"
8484

8585
environment_variables = {
8686
LABEL_KEY = "principal-email"

examples/delete-vms-without-cmek/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
*/
1616

1717
terraform {
18-
required_version = "~> 0.12.0"
18+
required_version = ">= 0.12"
1919
}
2020

2121
provider "archive" {
2222
version = "~> 1.0"
2323
}
2424

2525
provider "google" {
26-
version = "~> 2.1"
26+
version = "~> 3.39"
2727
}
2828

2929
provider "random" {

examples/dynamic-files/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module "localhost_function" {
5252
project_id = var.project_id
5353
region = var.region
5454
source_directory = "${path.module}/function_source"
55-
runtime = "nodejs8"
55+
runtime = "nodejs10"
5656

5757
source_dependent_files = [local_file.file]
5858
}

0 commit comments

Comments
 (0)