Add args option to Docker #Build

Signed-off-by: Kevin Poirot <kevin@vazee.fr>
This commit is contained in:
Kevin Poirot 2021-09-13 14:30:21 +02:00
parent af1d06f503
commit 924fd163eb

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
}
}, },
] ]