Add outputs.files task to plan

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-01-30 23:08:16 -01:00
parent 025ce14ed3
commit 813a476e06
8 changed files with 169 additions and 12 deletions

View File

@@ -17,8 +17,10 @@ package engine
// Send outputs to the client
outputs: {
@dagger(notimplemented)
// Export an #FS to the client
directories: [name=string]: _#outputDirectory
// Export a string to a file
files: [name=string]: _#outputFile
}
// Forward network services to and from the client
@@ -110,6 +112,19 @@ _#outputDirectory: {
dest: string
}
_#outputFile: {
$dagger: task: _name: "OutputFile"
// File contents to export
contents: string
// Export to this path ON THE CLIENT MACHINE
dest: string
// Permissions of the file (defaults to 0o644)
permissions?: int
}
// Forward a network endpoint to and from the client
_#proxyEndpoint: {
$dagger: task: _name: "ProxyEndpoint"