Merge pull request #1307 from aluzzardi/engine-loadsecret

engine.#NewSecret support
This commit is contained in:
Andrea Luzzardi
2022-01-10 12:09:21 -08:00
committed by GitHub
6 changed files with 127 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package engine
// Create a new a secret from a filesystem tree
#NewSecret: {
$dagger: task: _name: "NewSecret"
// 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
output: #Secret
}