trisbee / fe-cloud-run-example

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.
1 stars 0 forks source link

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:

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