https://github.com/pacovk/terraform-cloud-run
Full CI/CD for GCP Cloud Run with Terraform
https://github.com/pacovk/terraform-cloud-run
Last synced: 6 months ago
JSON representation
Full CI/CD for GCP Cloud Run with Terraform
- Host: GitHub
- URL: https://github.com/pacovk/terraform-cloud-run
- Owner: PacoVK
- Created: 2021-01-03T21:17:32.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T18:12:28.000Z (almost 5 years ago)
- Last Synced: 2025-02-07T13:56:10.991Z (8 months ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README #
### Overview ###
This repo is a sample for this [post](https://pascal-euhus.medium.com/ci-cd-for-cloud-run-with-terraform-f0a359d7f052) about how to setup Terraform Cloud and GCP Cloud Run and the CI/CD integration.
### Requirements ###
This repo uses Terraform cloud, hence you must setup a workspace described [here](https://pascal-euhus.medium.com/ci-cd-for-cloud-run-with-terraform-f0a359d7f052)
Example for CI/CD integration with GitHub Actions under `.github/workflows/build.yml`### Terraform - Google Cloud ###
#### Create ####
```
cd gcp
terraform init
terraform apply
```##### Output #####
Terraform will output a `api_url` to access the deployed webservice.#### Remove ####
```
cd gcp
terraform destroy
```
:warning: the registry backup storage won't be deleted, you'll need to delete it manually