d7a805f42b
Signed-off-by: Solomon Hykes <solomon@dagger.io>
52 lines
618 B
CUE
52 lines
618 B
CUE
package testing
|
|
|
|
import "alpha.dagger.io/dagger/op"
|
|
|
|
TestComponent: #up: [
|
|
op.#FetchContainer & {
|
|
ref: "alpine"
|
|
},
|
|
op.#Exec & {
|
|
args: ["sh", "-c", """
|
|
printf lol > /id
|
|
"""]
|
|
},
|
|
]
|
|
|
|
TestComponentLoad: {
|
|
string
|
|
|
|
#up: [
|
|
op.#Load & {
|
|
from: TestComponent
|
|
},
|
|
op.#Export & {
|
|
source: "/id"
|
|
format: "string"
|
|
},
|
|
]
|
|
}
|
|
|
|
TestNestedLoad: {
|
|
string
|
|
|
|
#up: [
|
|
op.#Load & {
|
|
from: #up: [
|
|
op.#FetchContainer & {
|
|
ref: "alpine"
|
|
},
|
|
op.#Exec & {
|
|
args: ["sh", "-c", """
|
|
printf lol > /id
|
|
"""]
|
|
},
|
|
]
|
|
},
|
|
op.#Export & {
|
|
source: "/id"
|
|
format: "string"
|
|
},
|
|
]
|
|
}
|