diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b25bd8..409410a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,12 +10,7 @@ on: jobs: tests: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: ["ubuntu-20.04", "macos-10.15", "macos-11"] + runs-on: "ubuntu-20.04" name: Run Tests steps: @@ -24,13 +19,17 @@ jobs: with: fetch-depth: 0 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: "1.17" - - name: Set up Terramate - run: go install github.com/mineiros-io/terramate/cmd/terramate@v0.1.11 + uses: giantswarm/install-binary-action@e97402b0aa95939ddba5b36aa77f8abc58a37fd5 + with: + binary: terramate + version: 0.2.0 + # https://github.com/mineiros-io/terramate/releases/download/v${version}/terramate_${version}_${os}_${arch}.tar.gz + download_url: "https://github.com/mineiros-io/${binary}/releases/download/v${version}/terramate_${version}_linux_x86_64.tar.gz" + tarball_binary_path: "${binary}" + + - name: Clean Up Terramate Install Artifacts + run: rm -rf terramate - name: Set up Terraform uses: hashicorp/setup-terraform@v1 diff --git a/.tool-versions b/.tool-versions index 4193312..49bd132 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,2 @@ terraform 1.2.3 +terramate 0.2.0 diff --git a/stacks/prod/cloud-runs/app1/_terramate_generated_backend.tf b/stacks/prod/cloud-runs/app1/_terramate_generated_backend.tf index 9cc5dcf..82e7051 100644 --- a/stacks/prod/cloud-runs/app1/_terramate_generated_backend.tf +++ b/stacks/prod/cloud-runs/app1/_terramate_generated_backend.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/backend.tm.hcl terraform { backend "local" { diff --git a/stacks/prod/cloud-runs/app1/_terramate_generated_cloud_run.tf b/stacks/prod/cloud-runs/app1/_terramate_generated_cloud_run.tf index 8ab9c40..7195c4a 100644 --- a/stacks/prod/cloud-runs/app1/_terramate_generated_cloud_run.tf +++ b/stacks/prod/cloud-runs/app1/_terramate_generated_cloud_run.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /modules/cloud-run/cloud_run.tm.hcl module "cloud_run_app" { iam = [ diff --git a/stacks/prod/cloud-runs/app1/_terramate_generated_providers.tf b/stacks/prod/cloud-runs/app1/_terramate_generated_providers.tf index 7875be2..d240cdb 100644 --- a/stacks/prod/cloud-runs/app1/_terramate_generated_providers.tf +++ b/stacks/prod/cloud-runs/app1/_terramate_generated_providers.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/providers.tm.hcl provider "google" { project = "mineiros-terramate-prod" diff --git a/stacks/prod/cloud-runs/app2/_terramate_generated_backend.tf b/stacks/prod/cloud-runs/app2/_terramate_generated_backend.tf index 9cc5dcf..82e7051 100644 --- a/stacks/prod/cloud-runs/app2/_terramate_generated_backend.tf +++ b/stacks/prod/cloud-runs/app2/_terramate_generated_backend.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/backend.tm.hcl terraform { backend "local" { diff --git a/stacks/prod/cloud-runs/app2/_terramate_generated_cloud_run.tf b/stacks/prod/cloud-runs/app2/_terramate_generated_cloud_run.tf index 21d58b3..06b44c1 100644 --- a/stacks/prod/cloud-runs/app2/_terramate_generated_cloud_run.tf +++ b/stacks/prod/cloud-runs/app2/_terramate_generated_cloud_run.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /modules/cloud-run/cloud_run.tm.hcl module "cloud_run_app" { iam = [ diff --git a/stacks/prod/cloud-runs/app2/_terramate_generated_providers.tf b/stacks/prod/cloud-runs/app2/_terramate_generated_providers.tf index 7875be2..d240cdb 100644 --- a/stacks/prod/cloud-runs/app2/_terramate_generated_providers.tf +++ b/stacks/prod/cloud-runs/app2/_terramate_generated_providers.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/providers.tm.hcl provider "google" { project = "mineiros-terramate-prod" diff --git a/stacks/prod/service-accounts/cloud-run/_terramate_generated_backend.tf b/stacks/prod/service-accounts/cloud-run/_terramate_generated_backend.tf index 9cc5dcf..82e7051 100644 --- a/stacks/prod/service-accounts/cloud-run/_terramate_generated_backend.tf +++ b/stacks/prod/service-accounts/cloud-run/_terramate_generated_backend.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/backend.tm.hcl terraform { backend "local" { diff --git a/stacks/prod/service-accounts/cloud-run/_terramate_generated_providers.tf b/stacks/prod/service-accounts/cloud-run/_terramate_generated_providers.tf index 7875be2..d240cdb 100644 --- a/stacks/prod/service-accounts/cloud-run/_terramate_generated_providers.tf +++ b/stacks/prod/service-accounts/cloud-run/_terramate_generated_providers.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/providers.tm.hcl provider "google" { project = "mineiros-terramate-prod" diff --git a/stacks/prod/service-accounts/cloud-run/_terramate_generated_service_account.tf b/stacks/prod/service-accounts/cloud-run/_terramate_generated_service_account.tf index 30a900c..e3c0b4f 100644 --- a/stacks/prod/service-accounts/cloud-run/_terramate_generated_service_account.tf +++ b/stacks/prod/service-accounts/cloud-run/_terramate_generated_service_account.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /modules/service-account/service_account.tm.hcl module "terraform-google-service-account" { account_id = "cloud-run" diff --git a/stacks/staging/cloud-runs/app1/_terramate_generated_backend.tf b/stacks/staging/cloud-runs/app1/_terramate_generated_backend.tf index 9cc5dcf..82e7051 100644 --- a/stacks/staging/cloud-runs/app1/_terramate_generated_backend.tf +++ b/stacks/staging/cloud-runs/app1/_terramate_generated_backend.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/backend.tm.hcl terraform { backend "local" { diff --git a/stacks/staging/cloud-runs/app1/_terramate_generated_cloud_run.tf b/stacks/staging/cloud-runs/app1/_terramate_generated_cloud_run.tf index 50a7a98..ac783f8 100644 --- a/stacks/staging/cloud-runs/app1/_terramate_generated_cloud_run.tf +++ b/stacks/staging/cloud-runs/app1/_terramate_generated_cloud_run.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /modules/cloud-run/cloud_run.tm.hcl module "cloud_run_app" { iam = [ diff --git a/stacks/staging/cloud-runs/app1/_terramate_generated_providers.tf b/stacks/staging/cloud-runs/app1/_terramate_generated_providers.tf index dbf7555..225ffb9 100644 --- a/stacks/staging/cloud-runs/app1/_terramate_generated_providers.tf +++ b/stacks/staging/cloud-runs/app1/_terramate_generated_providers.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/providers.tm.hcl provider "google" { project = "mineiros-terramate-staging" diff --git a/stacks/staging/cloud-runs/app2/_terramate_generated_backend.tf b/stacks/staging/cloud-runs/app2/_terramate_generated_backend.tf index 9cc5dcf..82e7051 100644 --- a/stacks/staging/cloud-runs/app2/_terramate_generated_backend.tf +++ b/stacks/staging/cloud-runs/app2/_terramate_generated_backend.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/backend.tm.hcl terraform { backend "local" { diff --git a/stacks/staging/cloud-runs/app2/_terramate_generated_cloud_run.tf b/stacks/staging/cloud-runs/app2/_terramate_generated_cloud_run.tf index 302f256..a6c139f 100644 --- a/stacks/staging/cloud-runs/app2/_terramate_generated_cloud_run.tf +++ b/stacks/staging/cloud-runs/app2/_terramate_generated_cloud_run.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /modules/cloud-run/cloud_run.tm.hcl module "cloud_run_app" { iam = [ diff --git a/stacks/staging/cloud-runs/app2/_terramate_generated_providers.tf b/stacks/staging/cloud-runs/app2/_terramate_generated_providers.tf index dbf7555..225ffb9 100644 --- a/stacks/staging/cloud-runs/app2/_terramate_generated_providers.tf +++ b/stacks/staging/cloud-runs/app2/_terramate_generated_providers.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/providers.tm.hcl provider "google" { project = "mineiros-terramate-staging" diff --git a/stacks/staging/service-accounts/cloud-run/_terramate_generated_backend.tf b/stacks/staging/service-accounts/cloud-run/_terramate_generated_backend.tf index 9cc5dcf..82e7051 100644 --- a/stacks/staging/service-accounts/cloud-run/_terramate_generated_backend.tf +++ b/stacks/staging/service-accounts/cloud-run/_terramate_generated_backend.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/backend.tm.hcl terraform { backend "local" { diff --git a/stacks/staging/service-accounts/cloud-run/_terramate_generated_providers.tf b/stacks/staging/service-accounts/cloud-run/_terramate_generated_providers.tf index dbf7555..225ffb9 100644 --- a/stacks/staging/service-accounts/cloud-run/_terramate_generated_providers.tf +++ b/stacks/staging/service-accounts/cloud-run/_terramate_generated_providers.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /stacks/providers.tm.hcl provider "google" { project = "mineiros-terramate-staging" diff --git a/stacks/staging/service-accounts/cloud-run/_terramate_generated_service_account.tf b/stacks/staging/service-accounts/cloud-run/_terramate_generated_service_account.tf index 30a900c..e3c0b4f 100644 --- a/stacks/staging/service-accounts/cloud-run/_terramate_generated_service_account.tf +++ b/stacks/staging/service-accounts/cloud-run/_terramate_generated_service_account.tf @@ -1,5 +1,4 @@ // TERRAMATE: GENERATED AUTOMATICALLY DO NOT EDIT -// TERRAMATE: originated from generate_hcl block on /modules/service-account/service_account.tm.hcl module "terraform-google-service-account" { account_id = "cloud-run" diff --git a/terramate.tm.hcl b/terramate.tm.hcl index 872de64..66ec049 100644 --- a/terramate.tm.hcl +++ b/terramate.tm.hcl @@ -1,5 +1,5 @@ terramate { - required_version = "~> 0.1.11" + required_version = "~> 0.2.0" config { run {