google cloud run - deploy from code repository
We can also deploy from our code repository using cloud run. Let's configure the followings. First we create a service. Then choose "Continously deploy from a repository(source or function)".
After you selected that, click on the blue button - "Setup cloud build". Next, we choose the repository that we would like to deploy.
Repository provider - github
As for the repository, you can close from here:- https://github.com/kepungnzai/gcp-cloud-run-python-fastapi. It is just a really simple python app.
Then you should select /Dockerfile
Next we will configure cloud run service to enable "Allow public access". Let's create our service.
Wait for a few minutes then you should have your service deployed.
Comments