28 lines
390 B
CUE
28 lines
390 B
CUE
|
package testing
|
||
|
|
||
|
X1=in: string | *"default input"
|
||
|
|
||
|
test: {
|
||
|
string
|
||
|
|
||
|
#dagger: compute: [
|
||
|
{
|
||
|
do: "fetch-container"
|
||
|
ref: "alpine"
|
||
|
},
|
||
|
{
|
||
|
do: "exec"
|
||
|
args: ["sh", "-c", """
|
||
|
echo -n "received: \(X1)" > /out
|
||
|
"""]
|
||
|
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
|
||
|
dir: "/"
|
||
|
},
|
||
|
{
|
||
|
do: "export"
|
||
|
source: "/out"
|
||
|
format: "string"
|
||
|
},
|
||
|
]
|
||
|
}
|