engine.#LoadSecret support

Fixes #1305

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-12-23 17:27:22 +01:00
parent 56a259e140
commit 6a70271ff2
5 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package engine
// Load a secret from a filesystem tree
#LoadSecret: {
$dagger: task: _name: "LoadSecret"
// Filesystem tree holding the secret
input: #FS
// Path of the secret to read
path: string
// Whether to trim leading and trailing space characters from secret value
trimSpace: *true | false
// Contents of the secret
contents: #Secret
}