GoogleCloudPlatform / cloud-run-button

Let anyone deploy your GitHub repos to Google Cloud Run with a single click
https://cloud.run
Apache License 2.0
525 stars 91 forks source link

Fork repo and set up Continuous Deployment instead of one-shot deployment #188

Open steren opened 4 years ago

steren commented 4 years ago

The experience of the button is amazing: click, get something running.

But that's how you should deploy software. That's great for demos or for one-shot images that don't have to be updated, but not great for iterating on a codebase. Consequently, this limits the use cases for the button (we should not use the button for "boilerplate"-type repositories)

A more sustainable way for customers to go from GitHub to Cloud Run would be:

  1. Fork the repo.
  2. set up a Cloud Build Trigger to automatically deploy from the fork to Cloud Run
  3. Run this trigger.

Maybe the button could help do that?

This would address along the way:

jamesward commented 4 years ago

Yeah, that is what I've been thinking about related to #75

ahmetb commented 4 years ago

I'll play the devils advocate yet again.

If you think it's possible, go for it.

As I mentioned above and in this comment, interacting with GCB is not easy today.

glasnt commented 4 years ago

2 cents:

It'd be neat if the button could show a cloudbuild.yaml re-deployment equiv example. If that's just a basic generic file, or if it's generated from the app.json, either way.

The authentication required to link GH and GCB limits the flow of the automation of the full CD process.