How google-github-actions/deploy-cloudrun works
This GitHub Action deploys a container image or source to Cloud Run and exposes the resulting service URL as an Actions output. Its main workflow reads deployment inputs, prepares gcloud and authentication, constructs a service or job deployment command, and can optionally update traffic. It parses gcloud responses into action outputs. The README also documents metadata-based deployment and configuration for environment variables, secrets, labels, and other deployment options. The source excerpt shows the main orchestration and parser calls; other documented capabilities are represented at that level without inferring their internal implementation.
Main entry points: main.ts Deployment orchestration · output-parser.ts Response parsing
Components 10
Action workflow
- Deployment orchestration
src/main.ts - Service and job modes
src/main.ts - Deployment configuration
src/main.ts - gcloud setup and auth
src/main.ts
Response handling
- Response parsing
src/output-parser.ts - GitHub Action outputs
src/main.ts
Cloud deployment
- gcloud CLI
- Cloud Run
Other components
- GitHub workflow
- Workflow output consumer
Connections 11
- GitHub workflow → Deployment orchestration: provides inputs
README.md - Deployment orchestration → Service and job modes: selects mode
src/main.ts - Deployment orchestration → Deployment configuration: builds flags
src/main.ts - Deployment orchestration → gcloud setup and auth: prepares CLI
src/main.ts - gcloud setup and auth → gcloud CLI: configures
src/main.ts - Deployment orchestration → gcloud CLI: executes deploy
src/main.ts - gcloud CLI → Cloud Run: deploys to
README.md - Deployment orchestration → Response parsing: parses response
src/main.ts - Deployment orchestration → gcloud CLI: updates traffic
src/main.ts - Response parsing → GitHub Action outputs: returns URL
src/main.ts - GitHub Action outputs → Workflow output consumer: exposes URL
README.md