DEV Community

Discussion on: Remember images in your cloudbuild.yaml!

Collapse
 
reyadussalahin profile image
Reyad Salahin

@glasnt , is there anyway to deploy to cloud run without pushing to container registry using cloud build?

Collapse
 
glasnt profile image
Katie McLaughlin

Hi @reyadussalahin , there are a limited number of supported registries that you can deploy from. Check out cloud.google.com/run/docs/deployin...

Collapse
 
reyadussalahin profile image
Reyad Salahin

Thanks for your reply. I've already read it. Anyway, in this approach you still have to use Artifact Repository/Container Registry temporarily. So, I guess, there's no way to bypass it entirely.

If its not too much to ask, can you please justify this stackoverflow answer or this reddit comment.

I just wanted to deploy from docker hub directly.

Thread Thread
 
glasnt profile image
Katie McLaughlin

With Cloud Build you can use Docker Hub cloud.google.com/build/docs/intera....

With Cloud Run for Anthos you can use Docker Hub cloud.google.com/kuberun/docs/depl... but note the warning: "As of November 1, 2020, Docker Hub rate limits apply to unauthenticated or authenticated pull requests on the Docker Free plan. To avoid disruptions and have greater control over your software supply chain, you can migrate your dependencies to Container Registry or Artifact Registry."

For Cloud Run (Fully Managed) (the typical "Cloud Run" experience), you must use Cloud Run or Artifact Registry.

Thread Thread
 
reyadussalahin profile image
Reyad Salahin

Thanks @glasnt . You've been a great help!