Move Cloud Run image property to GCP config struct
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
20
examples/cloudrun-app/main.cue
Normal file
20
examples/cloudrun-app/main.cue
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/gcp"
|
||||
"dagger.io/gcp/cloudrun"
|
||||
)
|
||||
|
||||
// Cloud Run service name
|
||||
serviceName: *"cloudrun-test" | string @dagger(input)
|
||||
|
||||
// Image name
|
||||
image: string @dagger(input)
|
||||
|
||||
gcpConfig: gcp.#Config
|
||||
|
||||
deploy: cloudrun.#Deploy & {
|
||||
"serviceName": serviceName
|
||||
"image": image
|
||||
config: gcpConfig
|
||||
}
|
Reference in New Issue
Block a user