Merge pull request #980 from VazeeKevin/tasks/docker-args-secrets

Add #Secret type to Docker #Build args
This commit is contained in:
Sam Alba
2021-09-23 15:31:03 -07:00
committed by GitHub
3 changed files with 32 additions and 24 deletions

View File

@@ -116,8 +116,11 @@ package op
dockerfile?: string
platforms?: [...string]
buildArg?: [string]: string
label?: [string]: string
buildArg?: {
// FIXME: should be `[string]: string | #Secret` (circular import)
[string]: string | _ @dagger(secret)
}
label?: [string]: string
target?: string
hosts?: [string]: string
}

View File

@@ -14,7 +14,7 @@ import (
// Dockerfile passed as a string
dockerfile: dagger.#Input & {*null | string}
args?: [string]: string
args?: [string]: string | dagger.#Secret
#up: [
op.#DockerBuild & {