Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Example project running on Google Cloud Run with CI/CD automatization via Github Actions. Each Pull Request have own testing URL like you know from @vercel.

Notifications You must be signed in to change notification settings

trisbee/fe-cloud-run-example

Repository files navigation

Frontend Cloud Run project

.github/workflows/stage.yml

docker build -t fe-cloud-run-example:latest .
docker run -it -p 5000:3000 --name fe-cloud-run-example fe-cloud-run-example:latest

test:

curl -i localhost:3000

Secret variables

Google Cloud Service Account keys are stored globally via Organization secrets.

Keys:

  • FE_PRODUCTION_GCP_SA_KEY
  • FE_STAGE_GCP_SA_KEY

The Service runner must have permission to edit IAM permissions to make the URL public. We recommend adding Security Admin, Project IAM Admin, Editor roles respectively in IAM Project Settings.

If you have to create new one, you can via Service Accounts page.

Reading list

Good to know

  • Service name may only start with a letter and contain up to 63 lowercase letters, numbers or hyphens
  • How to pick region

About

Example project running on Google Cloud Run with CI/CD automatization via Github Actions. Each Pull Request have own testing URL like you know from @vercel.

Resources

Stars

Watchers

Forks