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/publish.cue

53 lines
965 B
CUE
Raw Normal View History

2022-04-19 22:45:36 +02:00
package rust
import (
"dagger.io/dagger"
2022-04-20 16:23:28 +02:00
// "dagger.io/dagger/core"
2022-04-19 22:45:36 +02:00
"universe.dagger.io/x/contact@kjuulh.io/rust"
2022-04-20 16:23:28 +02:00
// "universe.dagger.io/docker"
2022-04-19 22:45:36 +02:00
"universe.dagger.io/alpine"
)
dagger.#Plan & {
2022-04-20 16:23:28 +02:00
client: {
filesystem: {
".": {
read: {
contents: dagger.#FS
}
}
}
}
2022-04-19 22:45:36 +02:00
2022-04-20 16:23:28 +02:00
actions: {
test: {
_baseImage: alpine.#Build
2022-04-19 22:45:36 +02:00
publish: rust.#Publish & {
2022-04-20 16:23:28 +02:00
source: client.filesystem.".".read.contents
2022-04-19 22:45:36 +02:00
}
2022-04-20 16:23:28 +02:00
// exec: docker.#Run & {
// input: _baseImage.output
// command: {
// name: "/bin/sh"
// args: ["-c", "/app/hello_world >> /output.txt"]
// }
// env: NAME: "dagger"
// mounts: binary: {
// dest: "/app"
// contents: publish.output
// source: "/"
// }
// }
2022-04-19 22:45:36 +02:00
2022-04-20 16:23:28 +02:00
// verify: core.#ReadFile & {
// input: exec.output.rootfs
// path: "/output.txt"
// } & {
// contents: "Hi dagger!"
// }
}
2022-04-19 22:45:36 +02:00
}
}