stdlib: docker: option "export" field

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-04-08 01:00:13 +00:00 committed by Andrea Luzzardi
parent 92ef1abd28
commit 4318aeb323

View File

@ -86,6 +86,12 @@ import (
}
env: PATH: string | *strings.Join([ for p, v in shell.search if v {p}], ":")
// Export values from the container to the cue configuration
export: *null | {
source: string
format: op.#Export.format
}
#up: [
op.#Load & {from: image},
// Copy volumes with type=copy
@ -122,5 +128,11 @@ import (
op.#Subdir & {
dir: outputDir
},
if export != null {
op.#Export & {
source: export.source
format: export.format
}
},
]
}