Rename dagger.#Dir to dagger.#Artifact

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-03-13 06:29:37 +00:00
parent 3ce985b594
commit 6460a5c9fc
8 changed files with 15 additions and 12 deletions

View File

@@ -1,8 +1,11 @@
package dagger
// Any component can be referenced as a directory, since
// every dagger script outputs a filesystem state (aka a directory)
#Dir: #compute: [...#Op]
// An artifact such as source code checkout, container image, binary archive...
// May be passed as user input, or computed by a buildkit pipeline
#Artifact: #compute: [...#Op]
// deprecated, use #Artifact instead.
#Dir: #Artifact
// Secret value
// FIXME: currently aliased as a string to mark secrets

View File

@@ -12,7 +12,7 @@ import (
args: [...string]
// Source Directory to build
source: dagger.#Dir
source: dagger.#Artifact
// Environment variables
env: [string]: string
@@ -40,7 +40,7 @@ import (
version: *#Go.version | string
// Source Directory to build
source: dagger.#Dir
source: dagger.#Artifact
// Packages to build
packages: *"." | string
@@ -81,7 +81,7 @@ import (
version: *#Go.version | string
// Source Directory to build
source: dagger.#Dir
source: dagger.#Artifact
// Packages to test
packages: *"." | string

View File

@@ -21,7 +21,7 @@ import (
account: #Account
// Contents of the application to deploy
contents: dagger.#Dir
contents: dagger.#Artifact
// Deploy to this Netlify site
name: string

View File

@@ -8,7 +8,7 @@ import (
// Yarn Script
#Script: {
// Source code of the javascript application
source: dagger.#Dir
source: dagger.#Artifact
// Run this yarn script
run: string | *"build"