Add outputs.files task to plan
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
10
tests/plan/outputs/files/default_permissions.cue
Normal file
10
tests/plan/outputs/files/default_permissions.cue
Normal file
@@ -0,0 +1,10 @@
|
||||
package main
|
||||
|
||||
import "dagger.io/dagger"
|
||||
|
||||
dagger.#Plan & {
|
||||
outputs: files: test: {
|
||||
contents: "foobar"
|
||||
dest: "./test"
|
||||
}
|
||||
}
|
7
tests/plan/outputs/files/no_contents.cue
Normal file
7
tests/plan/outputs/files/no_contents.cue
Normal file
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "dagger.io/dagger"
|
||||
|
||||
dagger.#Plan & {
|
||||
outputs: files: test: dest: "./test"
|
||||
}
|
18
tests/plan/outputs/files/usage.cue
Normal file
18
tests/plan/outputs/files/usage.cue
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import "dagger.io/dagger"
|
||||
|
||||
dagger.#Plan & {
|
||||
outputs: files: {
|
||||
[path=string]: dest: path
|
||||
"test.sh": {
|
||||
contents: """
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
echo "Hello World!"
|
||||
|
||||
"""
|
||||
permissions: 0o750
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user