This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/examples/cloudrun-app/main.cue
Tihomir Jovicic 83eebf82fa Move Cloud Run image property to GCP config struct
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-21 10:57:26 +02:00

21 lines
325 B
CUE

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
}