Europa: use $dagger
field to mark CUE types for engine recognition
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
758dcfb679
commit
eb86b0778c
@ -2,7 +2,7 @@ package engine
|
|||||||
|
|
||||||
// Execute a command in a container
|
// Execute a command in a container
|
||||||
#Exec: {
|
#Exec: {
|
||||||
_exec: {}
|
$dagger: task: _name: "Exec"
|
||||||
|
|
||||||
// Container filesystem
|
// Container filesystem
|
||||||
input: #FS
|
input: #FS
|
||||||
|
@ -2,19 +2,19 @@ package engine
|
|||||||
|
|
||||||
// A filesystem state
|
// A filesystem state
|
||||||
#FS: {
|
#FS: {
|
||||||
_fs: ID: string
|
$dagger: fs: _id: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Produce an empty directory
|
// Produce an empty directory
|
||||||
// FIXME: replace with a null value for #FS?
|
// FIXME: replace with a null value for #FS?
|
||||||
#Scratch: {
|
#Scratch: {
|
||||||
_scratch: {}
|
$dagger: task: _name: "Scratch"
|
||||||
|
|
||||||
output: #FS
|
output: #FS
|
||||||
}
|
}
|
||||||
|
|
||||||
#ReadFile: {
|
#ReadFile: {
|
||||||
_readFile: {}
|
$dagger: task: _name: "ReadFile"
|
||||||
|
|
||||||
input: #FS
|
input: #FS
|
||||||
path: string
|
path: string
|
||||||
@ -23,7 +23,7 @@ package engine
|
|||||||
}
|
}
|
||||||
|
|
||||||
#WriteFile: {
|
#WriteFile: {
|
||||||
_writeFile: {}
|
$dagger: task: _name: "WriteFile"
|
||||||
|
|
||||||
input: #FS
|
input: #FS
|
||||||
path: string
|
path: string
|
||||||
@ -33,7 +33,7 @@ package engine
|
|||||||
|
|
||||||
// Create a directory
|
// Create a directory
|
||||||
#Mkdir: {
|
#Mkdir: {
|
||||||
_mkdir: {}
|
$dagger: task: _name: "Mkdir"
|
||||||
|
|
||||||
input: #FS
|
input: #FS
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ package engine
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Copy: {
|
#Copy: {
|
||||||
_copy: {}
|
$dagger: task: _name: "Copy"
|
||||||
|
|
||||||
input: #FS
|
input: #FS
|
||||||
#CopyInfo
|
#CopyInfo
|
||||||
@ -65,7 +65,7 @@ package engine
|
|||||||
}
|
}
|
||||||
|
|
||||||
#Merge: {
|
#Merge: {
|
||||||
_merge: {}
|
$dagger: task: _name: "Merge"
|
||||||
|
|
||||||
input: #FS
|
input: #FS
|
||||||
layers: [...#CopyInfo]
|
layers: [...#CopyInfo]
|
||||||
|
@ -2,7 +2,7 @@ package engine
|
|||||||
|
|
||||||
// Push a directory to a git remote
|
// Push a directory to a git remote
|
||||||
#GitPush: {
|
#GitPush: {
|
||||||
gitPush: {}
|
$dagger: task: _name: "GitPush"
|
||||||
|
|
||||||
input: #FS
|
input: #FS
|
||||||
remote: string
|
remote: string
|
||||||
@ -11,7 +11,7 @@ package engine
|
|||||||
|
|
||||||
// Pull a directory from a git remote
|
// Pull a directory from a git remote
|
||||||
#GitPull: {
|
#GitPull: {
|
||||||
gitPull: {}
|
$dagger: task: _name: "GitPull"
|
||||||
|
|
||||||
remote: string
|
remote: string
|
||||||
ref: string
|
ref: string
|
||||||
|
@ -11,7 +11,7 @@ package engine
|
|||||||
|
|
||||||
// Upload a container image to a remote repository
|
// Upload a container image to a remote repository
|
||||||
#Push: {
|
#Push: {
|
||||||
push: {}
|
$dagger: task: _name: "Push"
|
||||||
|
|
||||||
// Target repository address
|
// Target repository address
|
||||||
dest: #Ref
|
dest: #Ref
|
||||||
@ -35,7 +35,7 @@ package engine
|
|||||||
|
|
||||||
// Download a container image from a remote repository
|
// Download a container image from a remote repository
|
||||||
#Pull: {
|
#Pull: {
|
||||||
pull: {}
|
$dagger: task: _name: "Pull"
|
||||||
|
|
||||||
// Repository source ref
|
// Repository source ref
|
||||||
source: #Ref
|
source: #Ref
|
||||||
@ -66,8 +66,9 @@ package engine
|
|||||||
#Ref: string
|
#Ref: string
|
||||||
|
|
||||||
// Build a container image using buildkit
|
// Build a container image using buildkit
|
||||||
|
// FIXME: rename to #Dockerfile to clarify scope
|
||||||
#Build: {
|
#Build: {
|
||||||
build: {}
|
$dagger: task: _name: "Build"
|
||||||
|
|
||||||
// Source directory to build
|
// Source directory to build
|
||||||
source: #FS
|
source: #FS
|
||||||
|
@ -2,5 +2,5 @@ package engine
|
|||||||
|
|
||||||
// An external secret
|
// An external secret
|
||||||
#Secret: {
|
#Secret: {
|
||||||
_secret: ID: string
|
$dagger: secret: _id: string
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package engine
|
package engine
|
||||||
|
|
||||||
// An external network service
|
// An external network service
|
||||||
|
// FIXME: rename to endpoint?
|
||||||
#Service: {
|
#Service: {
|
||||||
_service: ID: string
|
$dagger: service: _id: string
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,5 @@ package engine
|
|||||||
|
|
||||||
// A stream of bytes
|
// A stream of bytes
|
||||||
#Stream: {
|
#Stream: {
|
||||||
_stream: ID: string
|
$dagger: stream: _id: string
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user