dagger spec: fix Artifact definition

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-03-31 14:20:31 -07:00
parent b9bd250634
commit 1a3dc3debc
2 changed files with 6 additions and 5 deletions

View File

@ -6,10 +6,11 @@ import (
// An artifact such as source code checkout, container image, binary archive... // An artifact such as source code checkout, container image, binary archive...
// May be passed as user input, or computed by a buildkit pipeline // May be passed as user input, or computed by a buildkit pipeline
#Artifact: #compute: [...llb.#Op] #Artifact: {
#compute: [...llb.#Op]
// deprecated, use #Artifact instead. _
#Dir: #Artifact ...
}
// Secret value // Secret value
// FIXME: currently aliased as a string to mark secrets // FIXME: currently aliased as a string to mark secrets

View File

@ -9,7 +9,7 @@ import (
// Build a docker container image // Build a docker container image
#Build: { #Build: {
source: dagger.#Dir source: dagger.#Artifact
image: #compute: [ image: #compute: [
llb.#DockerBuild & {context: source}, llb.#DockerBuild & {context: source},