input: support yaml and json inputs

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-04-15 12:22:32 -07:00
parent 493406afe7
commit 6f57ed1b9d
9 changed files with 129 additions and 14 deletions

View 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"
},
]
}

View File

@@ -0,0 +1 @@
thisisatest