deploy/terraform/gcp on main of the product repository, and in the license zip. Cloud Run pulls public ghcr.io/rahilp/backtale by digest (no GHCR login) and reaches Cloud SQL over the built-in unix socket. The service is public HTTPS, minimum one instance, CPU always allocated.
Before apply
gcloudauthenticated to a project that can enable APIs and create Cloud Run, Cloud SQL, and Secret Manager- Terraform 1.5 or later
- The digest and
cosign.pub. Verify the image first.
Apply
1
Set variables
2
Create the resources
app_base_url to the cloud_run_url output, or to your custom domain, and apply again.3
Enable pgvector
4
Finish setup
Open
<cloud_run_url>/setup with terraform output -raw auth_setup_token. Store terraform output -raw token_encryption_key outside Google Cloud. After First run, remove AUTH_SETUP_TOKEN from the Cloud Run env and its Secret Manager binding, then redeploy.Upgrade
Back up Cloud SQL, verify the new digest, setimage_digest, and terraform apply. Read Upgrade by digest before you change an existing database.