Merge pull request #1704 from helderco/inputs-outputs-cleanup

Inputs/outputs cleanup
This commit is contained in:
Andrea Luzzardi
2022-03-08 16:16:15 -08:00
committed by GitHub
54 changed files with 101 additions and 1083 deletions

45
tests/plan/do/do.cue Normal file
View File

@@ -0,0 +1,45 @@
package main
import (
"dagger.io/dagger"
"universe.dagger.io/alpine"
"universe.dagger.io/bash"
)
dagger.#Plan & {
client: filesystem: "./test_do": write: contents: actions.test.one.export.files["/output.txt"]
actions: {
image: alpine.#Build & {
packages: bash: {}
}
test: {
one: bash.#Run & {
input: image.output
script: contents: "echo Hello World! > /output.txt"
export: files: "/output.txt": string
}
two: bash.#Run & {
input: image.output
script: contents: "true"
}
three: bash.#Run & {
input: image.output
script: contents: "cat /one/output.txt"
mounts: output: {
contents: one.export.rootfs
dest: "/one"
}
}
}
notMe: bash.#Run & {
input: image.output
script: contents: "false"
}
}
}