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/cloud-run-app/main.cue
Tihomir Jovicic 8c5b4270d0 Add Cloud Run support
Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
2021-06-10 08:12:43 +02:00

27 lines
457 B
CUE

package main
import (
"dagger.io/gcp"
"dagger.io/gcp/cloudrun"
)
// Cloud Run service name
serviceName: *"cloudrun-test" | string @dagger(input)
// GCP region
region: *"us-west2" | string @dagger(input)
// Image name
image: *"gcr.io/dagger-ci/cloudrun-test" | string @dagger(input)
gcpConfig: gcp.#Config & {
region: region
}
deploy: cloudrun.#Deploy & {
serviceName: serviceName
image: image
config: gcpConfig
region: region
}