copy: support for include/exclude
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -76,6 +76,10 @@ import "dagger.io/dagger"
|
||||
source: string | *"/"
|
||||
// Destination path (optional)
|
||||
dest: string | *"/"
|
||||
// Optionally exclude certain files
|
||||
include: [...string]
|
||||
// Optionally include certain files
|
||||
exclude: [...string]
|
||||
// Output of the operation
|
||||
output: dagger.#FS
|
||||
}
|
||||
|
@@ -45,6 +45,10 @@ import (
|
||||
contents: dagger.#FS
|
||||
source: string | *"/"
|
||||
dest: string | *"/"
|
||||
// Optionally exclude certain files
|
||||
include: [...string]
|
||||
// Optionally include certain files
|
||||
exclude: [...string]
|
||||
|
||||
// Execute copy operation
|
||||
_copy: core.#Copy & {
|
||||
@@ -52,6 +56,8 @@ import (
|
||||
"contents": contents
|
||||
"source": source
|
||||
"dest": dest
|
||||
"include": include
|
||||
"exclude": exclude
|
||||
}
|
||||
|
||||
output: #Image & {
|
||||
|
Reference in New Issue
Block a user