Prerequisites
You need the gcloud CLI configured with a project that has the Cloud Run, Cloud Build, and Secret Manager APIs enabled:Deploy to Cloud Run
1
Build the artifact
2
Build and push the container image
Use the Docker deployment patterns to create your Dockerfile. Then build and push to Google Container Registry:Alternatively, use Cloud Build:
3
Store credentials in Secret Manager
4
Deploy
5
Get the service URL
Cloud SQL integration
Connect to Cloud SQL for managed PostgreSQL or MySQL:Scaling
Cloud Run scales automatically based on incoming requests. Configure minimum and maximum instances:min-instances=1 avoids cold starts at the cost of continuous billing.