Rename dagger.#Dir to dagger.#Artifact
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
3ce985b594
commit
6460a5c9fc
@ -13,7 +13,7 @@ import (
|
||||
"dagger.io/docker"
|
||||
)
|
||||
|
||||
repository: dagger.#Dir
|
||||
repository: dagger.#Artifact
|
||||
|
||||
// Build `dagger` using Go
|
||||
build: go.#Build & {
|
||||
|
@ -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"
|
||||
|
@ -3,7 +3,7 @@ package test
|
||||
import "dagger.io/dagger"
|
||||
|
||||
// Set to `--input-dir=./tests/dockerbuild/testdata`
|
||||
TestData: dagger.#Dir
|
||||
TestData: dagger.#Artifact
|
||||
|
||||
TestInlinedDockerfile: #compute: [
|
||||
dagger.#DockerBuild & {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"dagger.io/alpine"
|
||||
)
|
||||
|
||||
TestData: dagger.#Dir
|
||||
TestData: dagger.#Artifact
|
||||
|
||||
TestGoBuild: {
|
||||
build: go.#Build & {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"dagger.io/alpine"
|
||||
)
|
||||
|
||||
TestData: dagger.#Dir
|
||||
TestData: dagger.#Artifact
|
||||
|
||||
TestYarn: {
|
||||
run: yarn.#Script & {
|
||||
|
Reference in New Issue
Block a user