stdlib package: llb

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-03-13 08:04:03 +00:00
parent b1b534992a
commit 54a2fe4393
13 changed files with 145 additions and 132 deletions

View File

@@ -2,6 +2,7 @@ package docker
import (
"dagger.io/dagger"
"dagger.io/llb"
)
#Ref: string
@@ -11,7 +12,7 @@ import (
source: dagger.#Dir
image: #compute: [
dagger.#DockerBuild & {context: source},
llb.#DockerBuild & {context: source},
]
}
@@ -22,15 +23,15 @@ import (
{
image: #Ref
out: #compute: [
dagger.#FetchContainer & {ref: image},
dagger.#Exec & {"args": args},
llb.#FetchContainer & {ref: image},
llb.#Exec & {"args": args},
]
} | {
image: _
out: #compute: [
dagger.#Load & {from: image},
dagger.#Exec & {"args": args},
llb.#Load & {from: image},
llb.#Exec & {"args": args},
]
}
}