diff --git a/Makefile b/Makefile index 796f8b6..30de323 100644 --- a/Makefile +++ b/Makefile @@ -25,4 +25,7 @@ semantic-release: .PHONY: semantic-release-dry-run semantic-release-dry-run: npm ci - npx semantic-release -d \ No newline at end of file + npx semantic-release -d + +package-lock.json: package.json + npm install \ No newline at end of file diff --git a/main.tf b/main.tf index 2656514..dd57f29 100644 --- a/main.tf +++ b/main.tf @@ -19,6 +19,14 @@ locals { } } +resource "google_project_service" "project" { + for_each = var.google_apis + + project = var.gcloud_project + service = each.value + disable_dependent_services = false +} + ## Modules module "gke-cluster" { source = "git@github.com:ouzi-dev/gke-terraform.git?ref=v0.3" diff --git a/package.json b/package.json index 015cb29..2de0d7e 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,14 @@ "@semantic-release/commit-analyzer", { "releaseRules": [ + { + "type": "fix", + "release": "patch" + }, + { + "type": "refactor", + "release": "patch" + }, { "type": "feat", "release": "minor" diff --git a/variables.tf b/variables.tf index 698c39a..66f9974 100644 --- a/variables.tf +++ b/variables.tf @@ -130,4 +130,24 @@ variable "github_org" { variable "base_domain" { type = string +} + +variable "google_apis"{ + type = set(string) + default = [ + "iam.googleapis.com", + "cloudresourcemanager.googleapis.com", + "container.googleapis.com", + "compute.googleapis.com", + "iamcredentials.googleapis.com", + "storage-api.googleapis.com", + "storage-component.googleapis.com", + "cloudapis.googleapis.com", + "containerregistry.googleapis.com", + "logging.googleapis.com", + "monitoring.googleapis.com", + "servicemanagement.googleapis.com", + "serviceusage.googleapis.com", + "dns.googleapis.com" + ] } \ No newline at end of file