This repo is a sample for this post about how to setup Terraform Cloud and GCP Cloud Run and the CI/CD integration.
This repo uses Terraform cloud, hence you must setup a workspace described here
Example for CI/CD integration with GitHub Actions under .github/workflows/build.yml
cd gcp
terraform init
terraform apply
Terraform will output a api_url
to access the deployed webservice.
cd gcp
terraform destroy