Deploy MergeWatch to Google Cloud Run with Cloud SQL for Postgres.
Google Cloud Run is a fully managed container platform that scales to zero when idle. This makes it a cost-effective choice for teams with sporadic pull request activity.
This guide walks you through deploying the MergeWatch container image to Cloud Run, connecting it to a Cloud SQL PostgreSQL instance, and configuring your GitHub App webhook to point at the Cloud Run service URL.
Cloud Run scales to zero when there are no incoming requests. You only pay for the time MergeWatch is actively processing webhooks — ideal for teams with sporadic PR activity.
2
Note the service URL
After deployment, gcloud prints the service URL:
Copy
Ask AI
Service URL: https://mergewatch-abc123-uc.a.run.app
Save this URL — you will need it to configure the webhook.
Set the webhook URL on your GitHub App to point at your Cloud Run service.
Copy
Ask AI
https://mergewatch-abc123-uc.a.run.app/webhook
The webhook URL is your Cloud Run service URL followed by /webhook.
The service must be configured with --allow-unauthenticated so GitHub can deliver webhook payloads. MergeWatch validates every payload using GITHUB_WEBHOOK_SECRET — unauthenticated requests without a valid signature are rejected.