stdlib: added @dagger(input) and @dagger(output) attributes

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-05-26 12:23:44 +02:00
parent 42e91c0a30
commit 7009d01835
19 changed files with 121 additions and 119 deletions

View File

@@ -13,26 +13,26 @@ import (
// A Yarn package.
#Package: {
// Application source code
source: dagger.#Artifact
source: dagger.#Artifact @dagger(input)
// Environment variables
env: [string]: string
env: [string]: string @dagger(input)
// Write the contents of `environment` to this file,
// in the "envfile" format.
writeEnvFile: string | *""
writeEnvFile: string | *"" @dagger(input)
// Read build output from this directory
// (path must be relative to working directory).
buildDir: string | *"build"
buildDir: string | *"build" @dagger(input)
// Run this yarn script
script: string | *"build"
script: string | *"build" @dagger(input)
build: os.#Dir & {
from: ctr
path: "/build"
}
} @dagger(output)
ctr: os.#Container & {
image: alpine.#Image & {