d62df71fd4
Signed-off-by: Richard Jones <richard@dagger.io>
21 lines
336 B
CUE
21 lines
336 B
CUE
package testing
|
|
|
|
import (
|
|
"dagger.io/dagger/engine"
|
|
)
|
|
|
|
engine.#Plan & {
|
|
inputs: directories: testdata: path: "./testdata"
|
|
|
|
actions: {
|
|
build: engine.#Dockerfile & {
|
|
source: inputs.directories.testdata.contents
|
|
}
|
|
|
|
verify: engine.#Exec & {
|
|
input: build.output
|
|
args: ["sh", "-c", "test $(cat /dir/foo) = foobar"]
|
|
}
|
|
}
|
|
}
|