runner: switch to client API
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
0786410bbd
commit
b33b75a570
@ -17,7 +17,7 @@ import (
|
||||
|
||||
var (
|
||||
ActionSelector = cue.Str("actions")
|
||||
OutputSelector = cue.Str("outputs")
|
||||
ClientSelector = cue.Str("client")
|
||||
)
|
||||
|
||||
type Plan struct {
|
||||
|
@ -89,9 +89,9 @@ func (r *Runner) initTasks() {
|
||||
}
|
||||
}
|
||||
|
||||
// If an `output` task is targeting an allowed task, allow the output task as well
|
||||
// If a `client` task is targeting an allowed task, allow the output task as well
|
||||
for _, t := range flow.Tasks() {
|
||||
if t.Path().Selectors()[0] != OutputSelector {
|
||||
if t.Path().Selectors()[0] != ClientSelector {
|
||||
continue
|
||||
}
|
||||
for _, dep := range t.Dependencies() {
|
||||
|
@ -8,10 +8,7 @@ import (
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
outputs: files: test: {
|
||||
dest: "./test_do"
|
||||
contents: actions.test.one.export.files["/output.txt"]
|
||||
}
|
||||
client: filesystem: "./test_do": write: contents: actions.test.one.export.files["/output.txt"]
|
||||
|
||||
actions: {
|
||||
image: alpine.#Build & {
|
||||
|
Reference in New Issue
Block a user