Skip to content

Documentation

runway documentation

runway deploys applications to Google Cloud Run from a runway.yaml next to your code. One file describes your services, jobs, schedules and workflows, how they are built, what they may access and how traffic reaches them. runway creates what they need, rolls them out, waits until they are healthy and manages their traffic.

There is no state file and no cluster: every command reads the live project and changes only what differs, so running it again is always safe.

Get started Configuration reference Commands

$ runway init --project my-gcp-project      # writes runway.yaml (and an example app)
$ runway plan --stage dev                   # exact changes, read-only
$ runway deploy --stage dev                 # build, provision, roll out, wait until healthy
$ runway deploy --stage prod --preview "$BRANCH"   # a URL for the branch, no traffic
$ runway deploy --stage prod --traffic 10   # canary
$ runway traffic --stage prod --promote     # finish it

What runway does

  • Build and deploy


    • Builds from a Dockerfile, or with buildpacks when there is none, on Cloud Build; or deploys an existing image. Images are content-addressed: the same source and base images are never built twice.
    • Deploys Cloud Run services, Cloud Run jobs and Cloud Scheduler jobs that run a job, call a service or start a workflow, from one file. A monorepo can deploy only the app a change touched (--only apps/web).
    • Workflows from files in your repository, with the URLs of your services and the names of your jobs put in, and access to exactly what each one calls.
    • Stages (dev, prod, …) share one file; each overrides what differs (project, region, scaling, environment).

    Services, jobs and schedules · Workflows · Stages

  • Safety


    • runway plan shows field-level changes to every service, job, schedule, image, traffic split and grant before anything happens, and says when something is only known at deploy time.
    • Ownership labels and markers keep runway away from what it did not create; undeploy never deletes buckets, secrets or APIs.
    • An interrupted deploy resumes where it stopped.

    How it works · Undeploying

  • Identity, access and secrets


    • A runtime service account per app (or per service or job), created if you want, with roles on exactly one bucket, dataset, secret or project.
    • Private by default; public: true, invokers allowed to call a service, restricted ingress, Identity-Aware Proxy for sign-in with Google, custom audiences.
    • Secret Manager references as environment variables or files; secrets runway creates empty, with the people allowed to fill them, and a deploy that waits (with the exact command) until they have a value.
    • Access removed from runway.yaml is revoked.

    Permissions · Secrets · Removing access

  • Runtime


    • CPU, memory, scaling, concurrency, timeouts, billing, startup CPU boost, execution environment, health checks, Cloud Storage volumes, sidecars and an OpenTelemetry Collector.
    • Direct VPC egress (Shared VPC too), Cloud SQL connections, and Cloud Run sandboxes for running untrusted code.

    Configuration · Networking and Cloud SQL

  • Traffic and releases


    • A URL per branch (--preview), canaries (--traffic N), promotion, explicit splits and rollback, without revision churn.
    • Release tags from your changelog; images promoted between stages by commit, without a rebuild, and published to the Artifact Registry repository of your choice.
    • Custom domains: a load balancer runway creates (or routes in yours), or Cloud Run domain mappings and *.cloud.run URLs, with managed certificates, DNS records and preview URLs on your domain.

    Traffic · Releases · Custom domains

  • Organizations


    • Organization policies: project and service tags bound and awaited before the rollout, and a first deploy that satisfies ingress conditions.
    • Workload Identity Federation in CI, impersonation, a dedicated account for pushing images, a container image, JSON output and stable exit codes.

    CI/CD

How do I…

Task How Details
Start a new app runway init --project P Getting started
Let runway create APIs, the repository, accounts enable_apis, create_build_resources, identity.create Getting started
Deploy an existing image service.image, or --image Configuration
See what a deploy would change runway plan --stage S Commands
Draw the stack runway describe --stage S Commands
Understand a key, or my whole runway.yaml runway explain [KEY] Commands
Give an AI assistant the reference runway explain --agent [KEY] Commands
Check credentials and permissions runway doctor --stage S Commands
Add a second service or a job services:, jobs: Services, jobs and schedules
Run a job on a schedule schedules: Services, jobs and schedules
Run a job now runway run-job NAME --stage S --wait Services, jobs and schedules
Chain jobs and services in a workflow workflows: {NAME: {source: …}} Workflows
Run a workflow now, or on a schedule runway run-workflow NAME --stage S --wait, schedules.N.workflow Workflows
Deploy only one app of a monorepo --only NAME or --only PATH Services, jobs and schedules
Give each branch its own URL deploy --preview "$BRANCH" Traffic
Clean up previews of merged branches runway preview prune --stage S --yes Traffic
Roll out gradually deploy --traffic 10, then traffic --promote Traffic
Release what was tested deploy --tag-rc, then deploy --tag Releases
Promote what another stage serves stages.S.promote: {from: …} Releases
Serve a service on my domain domains: [shop.example.com] Custom domains
Use a secret secrets: {NAME: {secret: …}} Secrets
Let people sign in with Google iap: {members: […]} Configuration
Reach a VPC or Cloud SQL vpc:, cloud_sql: Configuration
Deploy from GitHub Actions or GitLab CI Workload Identity Federation CI/CD
Remove an app and keep its data runway undeploy --stage S --yes Undeploying

All pages