diff --git a/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/container.cue b/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/container.cue index e8440c0b..391ce2b2 100644 --- a/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/container.cue +++ b/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/container.cue @@ -6,7 +6,7 @@ import ( ) #Container: { - // Container publisher + // Container name name: *"rust_publisher" | string // Source code @@ -20,6 +20,7 @@ import ( docker.#Run & { input: *_image.output | docker.#Image workdir: _sourcePath + command: name: "cargo" mounts: "source": { dest: _sourcePath contents: source diff --git a/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/test/publish.cue b/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/test/publish.cue index e795c0c3..02074369 100644 --- a/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/test/publish.cue +++ b/pkg/universe.dagger.io/x/contact@kjuulh.io/rust/test/publish.cue @@ -2,51 +2,15 @@ package rust import ( "dagger.io/dagger" -// "dagger.io/dagger/core" "universe.dagger.io/x/contact@kjuulh.io/rust" -// "universe.dagger.io/docker" - "universe.dagger.io/alpine" ) dagger.#Plan & { - client: { - filesystem: { - ".": { - read: { - contents: dagger.#FS - } - } - } + client: filesystem: "./data/hello": read: contents: dagger.#FS + + actions: test: { + publish: rust.#Publish & { + source: client.filesystem."./data/hello".read.contents + } } - - actions: { - test: { - _baseImage: alpine.#Build - - publish: rust.#Publish & { - source: client.filesystem.".".read.contents - } - -// 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: "/" -// } -// } - -// verify: core.#ReadFile & { -// input: exec.output.rootfs -// path: "/output.txt" -// } & { -// contents: "Hi dagger!" -// } - } - } }