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/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/test/image.cue
2022-04-20 16:23:53 +02:00

41 lines
606 B
CUE

package rust
import (
"dagger.io/dagger"
"universe.dagger.io/x/contact@kjuulh.io/rust"
"universe.dagger.io/docker"
)
dagger.#Plan & {
actions: test: {
_source: dagger.#Scratch & {}
simple: {
_image: rust.#Image & {}
verify: docker.#Run & {
input: _image.output
command: {
name: "/bin/sh"
args: ["-c", "cargo version | grep '1.6'"]
}
}
}
custom: {
_image: rust.#Image & {
version: "1.56"
}
verify: docker.#Run & {
input: _image.output
command: {
name: "/bin/sh"
args: ["-c", "cargo version | grep '1.56'"]
}
}
}
}
}