Back to feed
Dev.to
Dev.to
7/14/2026
The original title is: "Automating Production: A CI/CD Pipeline for Google Cloud Run with GitHub Actions"

The original title is: "Automating Production: A CI/CD Pipeline for Google Cloud Run with GitHub Actions"

Original: Automating Production: A CI/CD Pipeline for Google Cloud Run with GitHub Actions

Short summary

A step-by-step guide to building a CI/CD pipeline that deploys a FastAPI app to Google Cloud Run via GitHub Actions. Covers service account creation, GitHub Secrets configuration, and a complete deploy.yml workflow file that builds, pushes, and deploys on every push to main. The result is a git-push-to-deploy workflow with no manual steps.

  • Create a GCP service account with Artifact Registry Writer and Cloud Run Admin roles
  • Store the JSON key as a GitHub Secret and reference it in the workflow
  • Full deploy.yml provided: checkout, auth, build, push, deploy in one pipeline

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more