As of december 2020 I have removed the deployed project because my gcp trial expired
- Created storage bucket
- Service account with following roles
roles/run.admin
roles/run.serviceAgent
roles/containerregistry.ServiceAgent
- For travis-ci.com user
travis endpoint --pro --set-default
- Alternatively
travis endpoint --com --set-default
- For travis-ci.org user
travis endpoint --org --set-default
travis encrypt-file terraform-credentials.json --add
terraform-credentials.json
contains google service account private key DO NOT commit this file
travis encrypt LOGZ_TOKEN="YOUR_LOGZ_IO_TOKEN" --add
travis encrypt LOGZ_TOKEN="YOUR_LOGZ_IO_LISTENER_URL" --add
travis encrypt STATUS_CAKE_API_KEY="YOUR_STATUS_CAKE_API_KEY" --add
- In
.travis.yml
addGCP_PROJECT_ID
to your project id as global env
- In
variables.tf
change these default valuesdeploy_region
project_id
service_runner
status_cake_website_name
status_cake_check_rate
status_cake_contact_group
- In
provider.tf
change the following field valuebucket
- In
main.tf
you can changegoogle_cloud_run_service
resource name- And then you have to change some values in
google_cloud_run_service_iam_policy
block
- And then you have to change some values in
- Non mentioned fields are configured and encrypted at the
Encrypt secrets
step
- Once you have configured everything you will only need to change
image
in container block ofmain.tf
for each new revision