This directory contains Terraform scripts necessary to deploy Cloud Build triggers which automatically build new sample images on changes.
Note: This directory is for the repo maintainers and are not relevant to end-users.
You can access Cloud Build triggers in the Console.
Triggers automatically run when changes get merged in the main
branch, but you can also manually run triggers by clicking the Run button.
Runs and associated logs can be found in the Build history page.
Once changes to the Terraform scripts has been merged, we need to apply these changes in the Google Cloud project.
-
Clone this repo.
git clone https://github.com/GoogleCloudPlatform/kubernetes-engine-samples cd kubernetes-engine-samples/.github/terraform/
-
Change context to point to the
google-samples
project.gcloud config set project google-samples
-
Apply the Terraform changes.
terraform init terraform apply
Type in yes when prompted.
The first time a new Cloud Build trigger is added, it will not automatically run (but you may decide to manually run it). Further changes will run the trigger automatically.