d7a805f42b
Signed-off-by: Solomon Hykes <solomon@dagger.io>
45 lines
650 B
CUE
45 lines
650 B
CUE
package main
|
|
|
|
import (
|
|
"alpha.dagger.io/dagger"
|
|
"alpha.dagger.io/aws"
|
|
)
|
|
|
|
awsConfig: aws.#Config & {
|
|
// force region
|
|
region: "us-east-1"
|
|
}
|
|
|
|
#A: {
|
|
// source dir
|
|
source: dagger.#Artifact @dagger(input)
|
|
sourceNotInput: dagger.#Artifact
|
|
|
|
// a secret
|
|
key: dagger.#Secret @dagger(input)
|
|
keyNotInput: dagger.#Secret
|
|
|
|
// a string
|
|
str: string @dagger(input)
|
|
strSet: "pipo" @dagger(input)
|
|
strDef: *"yolo" | string @dagger(input)
|
|
|
|
// a number
|
|
num: int | *42 @dagger(input)
|
|
numNotInput: int
|
|
|
|
// aws config
|
|
cfg: awsConfig
|
|
}
|
|
|
|
cfgInline: {
|
|
#A
|
|
}
|
|
|
|
cfg: #A & {
|
|
// force this key
|
|
num: 21
|
|
}
|
|
|
|
cfg2: cfg
|