gcp-cloud-run-deploy

Deploys containerized microservices to Google Cloud Run using gcloud CLI and Knative manifests.

Updated Jul 24, 2026
One-click install
npx skills add https://github.com/oliverconstance/webapp-scrum-team --skill gcp-cloud-run-deploy-oliverconstance
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gcp-cloud-run-deploy
Source: https://github.com/oliverconstance/webapp-scrum-team/tree/main/.agent/skills/gcp-cloud-run-deploy
Command: npx skills add https://github.com/oliverconstance/webapp-scrum-team --skill gcp-cloud-run-deploy-oliverconstance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deploying services to Google Cloud Run involves many error-prone steps: building multi-stage container images, pushing to Artifact Registry, configuring IAM, autoscaling, and ingress rules. This Skill standardizes the entire procedure so deployments follow a consistent, least-privilege, declarative workflow instead of ad-hoc CLI commands. ## Core Features & Use Cases - Container Build & Push: Builds multi-stage Docker images via Google Cloud Build and pushes them to Google Artifact Registry. - Declarative Deployment: Deploys services using a Knative CloudRunService.yaml manifest with autoscaling, resource limits, probes, and service account configuration, or via direct gcloud run deploy commands. - IAM & Ingress Control: Configures roles/run.invoker bindings to restrict internal services to specific service accounts or expose public frontends to allUsers. - Use Case: A backend service needs to go live in europe-west2 with min 1 / max 10 instances, 80 concurrency, and no unauthenticated access. Follow the SOP to build the image, apply the YAML manifest, and verify health with a curl liveness check. ## Quick Start Deploy my backend service to Cloud Run in europe-west2 using the declarative Knative manifest and restrict access to the orchestrator service account.

Frequently Asked Questions about gcp-cloud-run-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a container to Google Cloud Run with gcloud?▼

Build and push your image to Artifact Registry with gcloud builds submit, then run gcloud run deploy with the image URL, region, service account, memory, concurrency, and scaling flags. Alternatively, apply a declarative Knative YAML manifest using gcloud run services replace.

How do I restrict Cloud Run service access to specific service accounts?▼

Use gcloud run services add-iam-policy-binding with the member set to the target service account and role roles/run.invoker. Deploy with --no-allow-unauthenticated so only authorized identities can invoke the service.

Why does Cloud Run fail with permission denied pulling the image?▼

The Cloud Run runtime service account lacks roles/artifactregistry.reader on the Artifact Registry repository. Grant that role to the service account so Cloud Run can pull the container image at startup.

Why does my Cloud Run container fail to bind to port 8080?▼

Cloud Run injects the PORT environment variable, defaulting to 8080, and expects the app to listen on 0.0.0.0:$PORT. Hardcoded ports or binding to localhost cause the container start to fail.

Can I deploy Cloud Run services declaratively with YAML?▼

Yes. Define a Knative serving.knative.dev/v1 Service manifest with autoscaling annotations, resource limits, probes, and service account, then apply it using gcloud run services replace with the target region.