Rename dagger.#Dir to dagger.#Artifact
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user