stdlib: docker: option "export" field
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
92ef1abd28
commit
4318aeb323
@ -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
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user