| 1 |
# Cloudbuild Triggers and Steps |
| 2 |
|
| 3 |
This directory contains terragrunt files to configure our CloudBuild pipeline(s). |
| 4 |
See links in the [deployment dir](/deployment/README.md) to install necessary tools. |
| 5 |
|
| 6 |
The CloudBuild pipeline is triggered on commits to the `main` branch of the repo, and |
| 7 |
is responsible for: |
| 8 |
1. Building the `cmd/gcp/conformance` docker image from the `main` branch, |
| 9 |
2. Creating a fresh conformance testing environment, |
| 10 |
3. Running the conformance test against the newly built conformance docker image, |
| 11 |
4. Turning-down the conformance testing environment. |
| 12 |
|
| 13 |
## Initial setup |
| 14 |
|
| 15 |
The first time this is run for a pair of {GCP Project, GitHub Repo} you will get an error |
| 16 |
message such as the following: |
| 17 |
|
| 18 |
``` |
| 19 |
Error: Error creating Trigger: googleapi: Error 400: Repository mapping does not exist. Please visit $URL to connect a repository to your project |
| 20 |
``` |
| 21 |
|
| 22 |
This is a manual one-time step that needs to be followed to integrate GCB and the GitHub |
| 23 |
project. |