implemented ability to pass #Secret as env var

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones
2022-02-04 16:28:20 -07:00
parent e3131671a7
commit 3c57630b0e
8 changed files with 385 additions and 80 deletions

View File

@@ -17,7 +17,7 @@ package engine
args: [...string]
// Environment variables
env: [key=string]: string
env: [key=string]: string | #Secret
// Working directory
workdir: string | *"/"

View File

@@ -55,7 +55,7 @@ import (
// Environment variables
// Example: {"DEBUG": "1"}
env: [string]: string
env: [string]: string | engine.#Secret
// Working directory for the command
// Example: "/src"