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

@@ -10,10 +10,10 @@ import (
#Account: {
// Use this Netlify account name
// (also referred to as "team" in the Netlify docs)
name: string | *""
name: string | *"" @dagger(input)
// Netlify authentication token
token: dagger.#Secret
token: dagger.#Secret @dagger(input)
}
// A Netlify site
@@ -22,16 +22,16 @@ import (
account: #Account
// Contents of the application to deploy
contents: dagger.#Artifact
contents: dagger.#Artifact @dagger(input)
// Deploy to this Netlify site
name: string
name: string @dagger(input)
// Host the site at this address
customDomain?: string
customDomain?: string @dagger(input)
// Create the Netlify site if it doesn't exist?
create: bool | *true
create: bool | *true @dagger(input)
// Website url
url: {
@@ -39,7 +39,7 @@ import (
from: ctr
path: "/netlify/url"
}
}.read.data
}.read.data @dagger(output)
// Unique Deploy URL
deployUrl: {
@@ -47,7 +47,7 @@ import (
from: ctr
path: "/netlify/deployUrl"
}
}.read.data
}.read.data @dagger(output)
// Logs URL for this deployment
logsUrl: {
@@ -55,7 +55,7 @@ import (
from: ctr
path: "/netlify/logsUrl"
}
}.read.data
}.read.data @dagger(output)
ctr: os.#Container & {
image: alpine.#Image & {