Make engine.#Scratch a specialization of #FS, rather than a task
Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
1
tests/cue.mod/module.cue
Normal file
1
tests/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: ""
|
3
tests/cue.mod/pkg/.gitignore
vendored
Normal file
3
tests/cue.mod/pkg/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# generated by dagger
|
||||
alpha.dagger.io
|
||||
dagger.lock
|
@@ -4,10 +4,8 @@ import "alpha.dagger.io/europa/dagger/engine"
|
||||
|
||||
engine.#Plan & {
|
||||
actions: {
|
||||
scratch: engine.#Scratch
|
||||
|
||||
data: engine.#WriteFile & {
|
||||
input: scratch.output
|
||||
input: engine.#Scratch
|
||||
path: "/test"
|
||||
permissions: 0o600
|
||||
contents: "foobar"
|
||||
|
@@ -10,13 +10,11 @@ engine.#Plan & {
|
||||
source: "alpine:3.15.0@sha256:e7d88de73db3d3fd9b2d63aa7f447a10fd0220b7cbf39803c803f2af9ba256b3"
|
||||
}
|
||||
|
||||
scratch: engine.#Scratch
|
||||
|
||||
exec: engine.#Exec & {
|
||||
input: image.output
|
||||
mounts: fs: {
|
||||
dest: "/scratch"
|
||||
contents: scratch.output
|
||||
contents: engine.#Scratch
|
||||
}
|
||||
workdir: "/"
|
||||
args: [
|
||||
|
Reference in New Issue
Block a user