e59ba48ec0
Signed-off-by: Richard Jones <richard@dagger.io>
22 lines
399 B
CUE
22 lines
399 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
|
|
dockerfile: path: "./dockerfilepath/Dockerfile.custom"
|
|
}
|
|
|
|
verify: engine.#Exec & {
|
|
input: build.output
|
|
args: ["sh", "-c", "test $(cat /test) = dockerfilePath"]
|
|
}
|
|
}
|
|
}
|