Merge pull request #967 from VazeeKevin/tasks/docker-build-args

stdlib/docker: Add args option to Docker #Build
This commit is contained in:
Sam Alba 2021-09-13 15:26:09 -07:00 committed by GitHub
commit 4d45e269e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,9 +10,14 @@ import (
#Build: { #Build: {
source: dagger.#Input & {dagger.#Artifact} source: dagger.#Input & {dagger.#Artifact}
args?: [string]: string
#up: [ #up: [
op.#DockerBuild & { op.#DockerBuild & {
context: source context: source
if args != _|_ {
buildArg: args
}
}, },
] ]