input: support yaml and json inputs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
25
tests/cli/input/artifact/main.cue
Normal file
25
tests/cli/input/artifact/main.cue
Normal file
@@ -0,0 +1,25 @@
|
||||
package testing
|
||||
|
||||
import (
|
||||
"dagger.io/dagger/op"
|
||||
"dagger.io/dagger"
|
||||
)
|
||||
|
||||
source: dagger.#Artifact
|
||||
foo: "bar"
|
||||
|
||||
bar: {
|
||||
string
|
||||
|
||||
#up: [
|
||||
op.#FetchContainer & {ref: "busybox"},
|
||||
op.#Exec & {
|
||||
args: ["cp", "/source/testfile", "/out"]
|
||||
mount: "/source": from: source
|
||||
},
|
||||
op.#Export & {
|
||||
format: "string"
|
||||
source: "/out"
|
||||
},
|
||||
]
|
||||
}
|
1
tests/cli/input/artifact/testdata/testfile
vendored
Normal file
1
tests/cli/input/artifact/testdata/testfile
vendored
Normal file
@@ -0,0 +1 @@
|
||||
thisisatest
|
Reference in New Issue
Block a user