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

41 lines
606 B
CUE
Raw Normal View History

2022-04-19 22:45:36 +02:00
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'"]
}
}
}
}
}