cloud-run-button icon indicating copy to clipboard operation
cloud-run-button copied to clipboard

Use Public Image Instead of Building One

Open jamesward opened this issue 4 years ago • 2 comments

If a project publishes a public container image then maybe the button should allow the skipping the build and just using the existing image. Via app.json like:

{
    "build": {
        "skip": false
    },
    "override": {
        "image": "gcr.io/cloudrun/hello"
    }
}

Not sure if this is a good idea or not.

jamesward avatar Jun 16 '20 16:06 jamesward

This basically makes the project an alternative to deploying directly from Cloud Run console. Similarly, broadens the focus from "deploy repos" to "deploy images or repos".

ahmetb avatar Jun 16 '20 17:06 ahmetb

Yeah, maybe if https://console.cloud.google.com/run/create had a way to specify some default params (image, service name, allow-unauthenticated, etc) then that'd be a better way to go. Still would be missing env var handling though.

jamesward avatar Jun 16 '20 18:06 jamesward