-
Notifications
You must be signed in to change notification settings - Fork 5
Deploy to Google Cloud Run
Masanori Ohgita edited this page Nov 30, 2024
·
5 revisions
Deployed example: https://angular-nest-545045794096.us-central1.run.app/
Deploy the app to Cloud Run using automated deployment from a GitHub repository.
NOTE: The following settings are set to fit in the free tier, but you need to enable the Billing on your project. Also, it may not be free depending on the state of your project. In any case, I don't any guaranteed.
- Firstly, create your project on Google Cloud, and please remember your Project ID.
- Enable the following APIs on your Google Cloud project.
- Open the dashboard of Google Cloud Run. Then connect your repository by clicking the
CONNECT REPO
button. - Choose the
GitHub
as the deployment source. - Click the
SETUP WITH CLOUD BUILD
button. - Fill the
Setup with Cloud Build
form.- Choose your GitHub repository.
- Install the Cloud Build app to that repository. (It means granting Google Cloud Build permission to access repository.)
- Choose
Branch
(e.g.,^master$
) - Choose
Build Type
:Go, Node.js, Python, Java, .NET Core, ...
) - Click
SAVE
button.
- Fill the
Configure
form.- Service name: (Please enter any name. It will become part of the URL of your app.)
- Authentication:
Allow unauthenticated invocations
- CPU allocation and pricing:
CPU is only allocated during request processing
- Done. The deployment will now be performed automatically, when you pushed code to GitHub repository.
- NOTE: If you want to perform the deployment manually, you can do it by clicking the
Run
button on the row of the list of Cloud Build Triggers.
- NOTE: If you want to perform the deployment manually, you can do it by clicking the