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}], ":") 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: [ #up: [
op.#Load & {from: image}, op.#Load & {from: image},
// Copy volumes with type=copy // Copy volumes with type=copy
@ -122,5 +128,11 @@ import (
op.#Subdir & { op.#Subdir & {
dir: outputDir dir: outputDir
}, },
if export != null {
op.#Export & {
source: export.source
format: export.format
}
},
] ]
} }