---
name: "gcp-cloud-run-serverless-deploy"
description: "Deploy scalable containerized microservices to Google Cloud Run with scale-to-zero semantics."
metadata:
  author: "Google Cloud Platform"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "deploy container to cloud run"
  - "set cloud run concurrency"
  - "mount secret manager cloud run"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Google Cloud Run Serverless Container Deployments

Configures Google Cloud Run: configuring CPU/memory limits, concurrency per container instance, minimum and maximum instances, custom domain mapping, secret mounts from GCP Secret Manager, and VPC access connectors.

## When to Invoke
Invoke this skill whenever you need to:
- deploy container to cloud run
- set cloud run concurrency
- mount secret manager cloud run

## Execution SOP & Rules
1. Deploy service: gcloud run deploy my-service --image gcr.io/my-project/app:v1 --region us-central1.
2. Configure concurrency: --concurrency 80 --min-instances 0 --max-instances 20.
3. Mount secret: --set-secrets DB_PASSWORD=projects/my-project/secrets/db-pass:latest.
4. Verify deployment URL and inspect revision metrics via gcloud run services describe my-service.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
